cassandra
cassandra copied to clipboard
integer overflow fix for CASSANDRA-14098
- 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