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

NamesQueryFilters do not update SSTable read rate metrics

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Urgent
    • Resolution: Fixed
    • 2.1.2
    • None
    • None
    • Critical

    Description

      In CollationController.collectionTimeOrderedData(), we are not calling sstable.incrementReadCount(). If a table is queried exclusively with these types of queries, its read meter will never be updated. Since SizeTieredCompactionStrategy depends on the read meter for omitting cold sstables form compaction, this can result in no compactions being performed. (I believe this would require an occasional non-NamesQueryFilter query to happen, because if all of the readMeters have a rate of 0.0, compaction will proceed normally.) The IndexSummaryManager is also affected.

      A workaround for compactions not occurring is to run the following:

      ALTER TABLE <tablename> WITH compaction = {'class': 'SizeTieredCompactionStrategy', 'min_threshold': '4', 'max_threshold': '32', 'cold_reads_to_omit': 0.0};
      

      Attachments

        Activity

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

          People

            thobbs Tom Hobbs Assign to me
            thobbs Tom Hobbs
            Tom Hobbs
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment