git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading cardinality from Statistics.db failed


I'm using 3.0.15. I see that there is some fix for sstable metadata in 3.0.16 https://issues.apache.org/jira/browse/CASSANDRA-14217 - is that a fix for "reading cardinalyti from statistics.db" ?


On Wed, Jul 25, 2018 at 1:02 PM Hannu Kröger <hkroger@xxxxxxxxx> wrote:
What version of Cassandra are you running? There is a bug in 3.10.0 and certain 3.0.x that occurs in certain conditions and corrupts that file. 

Hannu

Vitali Dyachuk <vdjatsuk@xxxxxxxxx> kirjoitti 25.7.2018 kello 10.48:

Hi,
I have noticed in the cassandra system.log that there is some issue with sstable metadata, the messages says:
WARN  [Thread-6] 2018-07-25 07:12:47,928 SSTableReader.java:249 - Reading cardinality from Statistics.db failed for /opt/data/disk5/data/keyspace/table/mc-big-Data.db
Although there is no such file. The message has appeared after i've changed the compaction strategy from SizeTiered to Leveled.
Currently i'm running nodetool scrub to rebuilt the sstable, and it takes a lot of time to scrub all sstables.
Reading the code it is said that if this metada is broken, then estimating the keys will be done using index summary. How expensive it is ?
https://github.com/apache/cassandra/blob/cassandra-3.0.15/src/java/org/apache/cassandra/io/sstable/format/SSTableReader.java#L245

The main question is why has this happened?

Thanks,
Vitali Djatsuk.


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-cassandra-users/msg06588.html on line 70
Call Stack
#TimeMemoryFunctionLocation
10.0008358376{main}( ).../msg06588.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-cassandra-users/msg06588.html on line 70
Call Stack
#TimeMemoryFunctionLocation
10.0008358376{main}( ).../msg06588.html:0