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

OOM while loading key cache at startup

    XMLWordPrintableJSON

Details

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

    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-OOM-while-loading-key-cache-at-startup.patch
          0.8 kB
          Fabien Rousseau
        2. 5706-v2-txt
          2 kB
          Jonathan Ellis

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: