Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Normal
Description
Since CASSANDRA-9975, the cleanup of stale index entries at read time has been broken for CompositesIndex instances (KeysIndex is not affected).
The issue is that the call to deleteAllEntries is made in the onClose method of the anonymous Transformation, where it should be in onPartitionClose. This wasn't caught by the existing unit test (o.a.c.db.SecondaryIndexTest::testDeleteOfInconsistentValuesInKeysIndex as it only checks that the stale entries are filtered from the returned results, not that they are actually purged from the index tables.