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

Check if size of object being added to RowCache and KeyCache is bigger than cache capacity

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • Local/Caching
    • None
    • All
    • None

    Description

      We don't check if the size of an object being added to the RowCache/KeyCache itself exceeds the max configured size of the cache.

      For instance, if a RowCache object is ~5GB due to IndexInfo objects, but the cache is configured to have a max capacity of 100MB, we will still add the 5GB object into the cache and then need to wait for the eviction thread in the cache to come around, realize we're over capacity, and remove the object from the cache.

      We could check the size of the object with jamm and ensure it's smaller than the max size of the cache. If it exceeds the size of the cache don't cache it at all.

      Attachments

        Issue Links

          Activity

            People

              jmckenzie Josh McKenzie
              jmckenzie Josh McKenzie
              Josh McKenzie
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: