samueldlightfoot opened a new pull request, #4612:
URL: https://github.com/apache/cassandra/pull/4612

   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 <Reviewers> for CASSANDRA-20599


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to