Details
-
Bug
-
Status: Patch Available
-
Normal
-
Resolution: Unresolved
-
None
-
None
-
Normal
Description
A race between e.g. index redistribution and compaction (or memtable flushes and compaction) can cause the compare and swap of a new sasi.conf.View in sasi.conf.DataTracker#update to fail, leading to recreation of the view and improper reference counting of an SSTableIndex. This is because the side-effects (decrementing the reference count via SStableIndex#release) occur regardless of if the view is promoted to be the active view.
Attached logs and debug output show case where index redistribution and compaction race. This case was generated using the test provided in https://issues.apache.org/jira/browse/CASSANDRA-14055