[
https://issues.apache.org/jira/browse/CASSANDRA-16673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcus Eriksson updated CASSANDRA-16673:
----------------------------------------
Fix Version/s: 3.0.26
3.11.12
4.0.2
4.1
Since Version: 3.0 alpha 1
Source Control Link:
https://github.com/apache/cassandra/commit/b1a8a56c563b85ab9a34d3bbf9c16278dd441157
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
committed, thanks!
test failures below look unrelated (bootstrap tests are fixed in
CASSANDRA-17256)
[3.0|https://app.circleci.com/pipelines/github/krummas/cassandra/750/workflows/424ae7ef-5d44-4573-89cc-8f37c738d4d5]
[3.11|https://app.circleci.com/pipelines/github/krummas/cassandra/752/workflows/c55b24da-dae2-471c-8700-ddca1ae7eed4]
[4.0|https://app.circleci.com/pipelines/github/krummas/cassandra?branch=marcuse%2F16673&filter=all]
(the failing MV test passes locally and on
[jenkins|https://ci-cassandra.apache.org/view/all/job/Cassandra-devbranch/1356/#showFailuresLink])
[trunk|https://app.circleci.com/pipelines/github/krummas/cassandra?branch=marcuse%2F16673-trunk&filter=all]
> Avoid race in AbstractReplicationStrategy endpoint caching
> ----------------------------------------------------------
>
> Key: CASSANDRA-16673
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16673
> Project: Cassandra
> Issue Type: Bug
> Components: Cluster/Membership
> Reporter: Marcus Eriksson
> Assignee: Marcus Eriksson
> Priority: Normal
> Fix For: 3.0.26, 3.11.12, 4.0.2, 4.1
>
>
> We should make sure we track which ringVersion we are caching in
> AbstractReplicationStrategy to avoid a race where we might return the wrong
> EndpointsForRange.
> {code}
> 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)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]