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

Saved key cache is not loaded when opening ColumnFamily

    XMLWordPrintableJSON

Details

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

    Description

      This bug happens on cassandra version 1.1.3 ~ 1.1.x only

      In order to load key cache in SSTableReader#open, keyCache has to be set by calling setTrackedBy before loading. CASSANDRA-4436 changed the order to load then setTrackedBy, so saved key cache is never loaded.
      In 1.2, key cache stores both key and position, and is loaded out side of SSTableReader so the issue only happens on 1.1.x branch.

      Attachments

        1. 0001-key-cache-loading-test.patch
          3 kB
          Yuki Morishita
        2. 0002-fix-loading-key-cache.patch
          1 kB
          Yuki Morishita

        Issue Links

          Activity

            People

              yukim Yuki Morishita
              yukim Yuki Morishita
              Yuki Morishita
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: