facebook / facebook/rocksdb

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

Aperta
#6,501 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
java-api up-for-grabs
Lingua principale
C++
Stelle
32.1k
Fork
6.9k
Merge medio
32m
PR unite (30g)
1

Descrizione

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).

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.