cassandra/test
samlightfoot a3a834ad31 Reduce memory footprint of IndexSummaryTest large summary tests
The runtime overflow guard test (testLargeIndexSummary) required ~2 GiB of
off-heap memory to trigger the Integer.MAX_VALUE boundary in
IndexSummaryBuilder.maybeAddEntry. SafeMemoryWriter's 50% buffer growth
strategy caused ~5 GiB peak memory during reallocation (old + new buffer),
exceeding CI medium node limits (3.5-5 GB).

Extract the hardcoded Integer.MAX_VALUE threshold in IndexSummaryBuilder
into a @VisibleForTesting field (maxEntriesSize), allowing the test to
exercise the same guard logic with a 2 MB threshold instead. Rename both
large summary tests to reflect their distinct code paths: runtime truncation
vs constructor-initiated downsampling.

patch by Sam Lightfoot; reviewed by Brandon Williams,Dmitry Konstantinov,Michael Semb Wever for CASSANDRA-20599
2026-02-13 13:05:50 +00:00
..
anttasks/org/apache/cassandra/anttasks Organize imports and standartize import order across entire codebase 2025-12-30 22:34:14 +01:00
bin Add cursor based optimized compaction path 2025-12-19 12:45:25 -05:00
burn/org/apache/cassandra Organize imports and standartize import order across entire codebase 2025-12-30 22:34:14 +01:00
conf Upgrade logback version to 1.5.18 and slf4j dependencies to 2.0.17 2025-04-25 14:24:35 +02:00
data Merge branch 'cassandra-4.0' into cassandra-4.1 2025-08-27 19:01:31 +02:00
distributed/org/apache/cassandra Add Direct IO support for compaction reads 2026-02-04 12:40:42 -05:00
harry/main/org/apache/cassandra BETWEEN where token(Y) > token(Z) returns wrong answer 2026-01-21 09:33:27 -08:00
long/org/apache/cassandra Organize imports and standartize import order across entire codebase 2025-12-30 22:34:14 +01:00
memory/org/apache/cassandra/db/compaction Organize imports and standartize import order across entire codebase 2025-12-30 22:34:14 +01:00
microbench/org/apache/cassandra/test/microbench Merge branch 'cassandra-5.0' into trunk 2026-01-27 20:22:38 +01:00
resources Add JDK21 support 2026-02-02 12:39:05 -05:00
simulator Add JDK21 support 2026-02-02 12:39:05 -05:00
unit Reduce memory footprint of IndexSummaryTest large summary tests 2026-02-13 13:05:50 +00:00