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

Compaction degrades key cache stats

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.0.0
    • None
    • Low

    Description

      When "compaction_preheat_key_cache" is set to true, then during compaction, it keep tracks of cached keys to to re-cache their new position.
      It does this by calling the following method on every key of the compacted sstable :
      sstable.getCachedPosition(row.key)
      which also update cache stats, thus lowering hit rate

      Below is an attached patch allowing to know if the key is cached, but without updating the stats.

      Attachments

        1. 001-CASSANDRA-3325.patch
          3 kB
          Fabien Rousseau

        Activity

          People

            frousseau Fabien Rousseau
            frousseau Fabien Rousseau
            Fabien Rousseau
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: