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

Don't compute expensive MaxPurgeableTimestamp until we've verified there's an expired tombstone

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Low

    Description

      In LCR's get reduced, we currently do this:

                      if (t.timestamp() < getMaxPurgeableTimestamp() && t.data.isGcAble(controller.gcBefore))
      

      Should call the expensive getMaxPurgeableTimestamp only after we have called the cheap isGcAble.

      Marking this as a bug since it can cause pathological performance problems (CASSANDRA-11831).

      Have verified that this is not a problem in 3.0 (CompactionIterator does the check in the correct order).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jbellis Jonathan Ellis Assign to me
            jbellis Jonathan Ellis
            Jonathan Ellis
            Marcus Eriksson
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment