Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
Cassandra 2.1.13
Nodeltool
-
Low
Description
If sstable count is 0, the "estimate number of keys" in cfstats shows -1.
SSTable count: 0 Number of keys (estimate): -1
The initial value of keyCount in SSTableReader is -1. When there is no sstable, nor entry in memtable, the keyCount isn't increased. Cfstats should have some boundary check and return 0 for this case.