cassandra icon indicating copy to clipboard operation
cassandra copied to clipboard

integer overflow fix for CASSANDRA-14098

Open swalchemist opened this issue 1 year ago • 0 comments

  • Fixes https://issues.apache.org/jira/browse/CASSANDRA-14098 in a similar way as the provided patch. The split count will now be correct for larger numbers of rows, where before it was calculated as 1 because of an interaction between the integer overflow from the long input and the Math.max that follows it.
  • Also refactored and added tests, some of which fail on the current code because of the integer overflow.

Co-Authored-By: @lexler

swalchemist avatar Sep 27 '24 20:09 swalchemist