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

OOM while loading key cache at startup

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 1.2.7
    • Component/s: None
    • Labels:
      None

      Description

      Steps to be able to reproduce it :

      • have a heap of 1Gb
      • have a saved key cache without the SSTables

      When looking at KeyCacheSerializer.serialize : it always writes a Boolean
      When looking at KeyCacheSerializer.deserialize : no Boolean is read if SSTable is missing...

      In case of a promoted index, RowIndexEntry.serializer.skip(...) should be called rather than RowIndexEntry.serializer.skipPromotedIndex(...) (again for symmetry between serialization/deserialization)

      Attached is a proposed patch

        Attachments

        1. 5706-v2-txt
          2 kB
          Jonathan Ellis
        2. 5706-OOM-while-loading-key-cache-at-startup.patch
          0.8 kB
          Fabien Rousseau

          Activity

            People

            • Assignee:
              frousseau Fabien Rousseau
              Reporter:
              frousseau Fabien Rousseau
              Reviewer:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: