facebook / facebook/rocksdb

[BUG] unexpected cost on FragmentedRangeTombstoneList

Open
#6,820 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
32.1k
Forks
6.9k
Avg merge
32m
Merged PRs (30d)
1

Description

Our rocksdb version is 5.18.3, and our apps use a single thread to access to rocksdb, and the rocksdb contains tens of millions of keys. Normally it runs ok, but one day our apps get data from rocksdb very slow.

### Expected behavior

The points lookups can return quickly.

### Actual behavior

![image](https://user-images.githubusercontent.com/24804835/81249964-76055380-9052-11ea-8dea-71fe2a710197.png)

Here is the CPU profiling graph, we can see that `FragmentedRangeTombstoneList` makes up a large proportion, but we never use `DeleteRange`, it's very strange.

### Steps to reproduce the behavior

This rarely happens, actually it occurred only once, I tried but cannot reproduce.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.