Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-11329

Indexers are not informed when expired rows are encountered in compaction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0.6, 3.6
    • Local/Compaction
    • None
    • Normal

    Description

      When rows are merged during a compaction, if the row resulting from that merge is expired due to a row level ttl, registered indexes should be notified.

      Index implementers need to be aware that just because an expired row is written to the new SSTable, it doesn't necessarily mean that the index should purge its entry/entries for that row as there may still be be live data in other SSTables.

      That said, it should probably be the responsibility of the index implementation to manage that, but at the moment the handling of an onPrimaryKeyLivenessInfo event during compaction is a no-op and doesn't cause the registered indexes to be notified.

      Attachments

        Activity

          People

            samt Sam Tunnicliffe
            samt Sam Tunnicliffe
            Sam Tunnicliffe
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: