java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

TokenRange.mergeWith incorrectly handles ranges with the same start

Open RadoBuransky opened this issue 2 years ago • 0 comments

https://github.com/scylladb/java-driver/blob/b3f3ebaf161b21e5c4840ec294595d4e4b39d9bf/driver-core/src/main/java/com/datastax/driver/core/TokenRange.java#L293

I would expect that if I merge ]A,B] with ]A,C] where C>B then I get ]A,C] and not the full ring.

RadoBuransky avatar May 18 '23 15:05 RadoBuransky