ERROR Message Example
ERROR [SASI-General:520] 2018-06-25 18:30:13,054 PerSSTableIndexWriter.java:266 – Failed to build index segment /data1/cassandra/data/blog/m_row_keys_m-616dc52044ea11e8892779a9bfafe78c/mc-36714-big-SI_m_row_keys_m_mv_status_idx.db
What does this ERROR message mean?
This error will occur when either there is some form of corruption or filesystem related issue stopping the index segment from being created or it may be a permissions related issue.
Why does this ERROR occur?
This can occur when either the underlying Cassandra data, most likely a corrupt sstable, is being read to create the new index segment or there is a filesystem related error such as a corrupt block on disk or similar which is stopping the segment from being written successfully.
In some situations file and directory permissions could also play a part in this error occurring.
How do you fix this ERROR?
Check the debug or system logs in Cassandra for any other errors that may be related to the corruption such as corrupt sstable or check for other potential problems relating to the underlying filesystem not able to be written to.
Some of the things to check are IO errors (physical disk acess), filesystem corruption (OS format such as ext3 or XFS) or a permissions related issue on the parent directories.