Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
3.0.26, 3.11.12, 4.0.2, 4.1-alpha1, 4.1
-
None
-
Availability - Unavailable
-
Low
-
Normal
-
Fuzz Test
-
All
-
None
-
Description
We should make sure we track which ringVersion we are caching in AbstractReplicationStrategy to avoid a race where we might return the wrong EndpointsForRange.
Caused by: java.lang.IllegalArgumentException: 9010454139840013625 is not contained within (9223372036854775801,-4611686018427387905] at org.apache.cassandra.locator.EndpointsForRange.forToken(EndpointsForRange.java:59) at org.apache.cassandra.locator.AbstractReplicationStrategy.getNaturalReplicasForToken(AbstractReplicationStrategy.java:104) at org.apache.cassandra.locator.ReplicaLayout.forTokenReadLiveSorted(ReplicaLayout.java:330) at org.apache.cassandra.locator.ReplicaPlans.forRead(ReplicaPlans.java:594)