00fb6d76d0a97af06ba27c1180d6dcddfa337fea | Author: Francisco Fernandez Castano <francisco.fernandez.castano@gmail.com>
| 2020-03-25 12:15:20+01:00
Fix overflows on StreamingTombstoneHistogramBuilder produced by large deletion times.
patch by Francisco Fernandez; reviewed by Benjamin Lerer and Robert Stupp
for CASSANDRA-14773
This patch:
* prevents int32-bit integer overflow
* simplifies the underlying structures of StreamingTombstoneHistogramBuilder
* avoid humongous allocations by maintaining separate arrays for tombstone timestamps and number of
tombstone occurrences (these two were kept in the same array before)
* introduces more test coverage.