Description
In org.apache.cassandra.utils.obs.OffHeapBitSet.
byteCount overflows and causes an IllegalArgument exception in Memory.allocate when bloomfilter is > 2GB.
Suggest changing byteCount to long.
OffHeapBitSet.java
public OffHeapBitSet(long numBits) { // OpenBitSet.bits2words calculation is there for backward compatibility. int byteCount = OpenBitSet.bits2words(numBits) * 8; bytes = RefCountedMemory.allocate(byteCount); // flush/clear the existing memory. clear(); }