facebook / facebook/rocksdb

Java RocksDB 6.4.6 returning -24 for rocksdb.estimate-num-keys

Open
#6,501 6 comments 0 reactions 0 assignees View on GitHub
java-api up-for-grabs
Dominant language
C++
Stars
32.1k
Forks
6.9k
Avg merge
32m
Merged PRs (30d)
1

Description

Java RocksDB version 6.4.6: I'm using db.getLongProperty("rocksdb.estimate-num-keys") and getting -24 back. Now - I know I read somewhere that a negative value *could* be returned in this property in versions prior to 5.8, but I cannot find that reference anywhere now.

### Expected behavior
Returns a positive value that is the estimated number of keys in the database.

### Actual behavior
Returning a negative value (-24 - have also seen -135).

### Steps to reproduce the behavior
Just call the Property under the write set of conditions (I suppose).

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.