cassandra
cassandra copied to clipboard
[CASSANDRA-17298][4.1] Improve accuracy of memtable heap usage tracking
Fix estimateRowOverhead in Memtable: ByteBuffer in Partition key was not counted + slab byte[] array was included due removal of omitSharedBuffer Overhead Fix non-counted size of "columns" field in Columns.unsharedHeapSize BTree.sizeOfStructureOnHeap wrongly reported a non-zero size for EMPTY_LEAF shared constant value Fix MemtableSizeTest flakeness by not measuring of allocator and ColumnFamilyStore/Keyspace Add disablePreparedReuseForTest for every run of MemtableSizeTest test
Patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-17298