Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
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
- is superceded by
-
CASSANDRA-11206 Support large partitions on the 3.0 sstable format
- Resolved