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

Avoid iterating the memtable contents when doing range queries with `only_purge_repaired_tombstones` enabled

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Triage Needed
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Local/Memtable
    • Labels:
      None
    • Platform:
      All
    • Impacts:
      None

      Description

      Currently we iterate over the subrange of the memtable contents we are querying for to find the oldest unrepaired tombstone, we could probably just track the oldest tombstone globally for the memtable without any big drawbacks (we might include a few more tombstones when doing the read).

      Also noted that we use EncodingStats#minLocalDeletionTime without checking for the DELETION_TIME_EPOCH value in a few places, this can make us include too many expired tombstones during reads.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcuse Marcus Eriksson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: