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

saved row cache doesn't save the cache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.7.1
    • None
    • None
    • Normal

    Description

      saving row caches works by periodically iterating of the keySet() on the caches and writing the keys for the cached contents to disk. The cache keys are DecoratedKeys. DecoratedKeys contain a Token token and a ByteBuffer key. The underlying buffer on the key gets reused so the contents change. This means that all the cache entries have distinct tokens but only a handful of distinct key values. This means that when the cache is loaded you only end up loading a handful of keys instead of the ones actually in your cache.

      Attachments

        1. 2102-cassandra-0.7.txt
          16 kB
          Matthew F. Dennis
        2. 2102-cassandra-0.7-v2.txt
          3 kB
          Matthew F. Dennis

        Activity

          People

            mdennis Matthew F. Dennis
            mdennis Matthew F. Dennis
            Matthew F. Dennis
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4m
                4m
                Remaining:
                Remaining Estimate - 4m
                4m
                Logged:
                Time Spent - Not Specified
                Not Specified