Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
Description
I added to RSECT in CASSANDRA-1147,
// TODO DSS is asked to provide a total of 6 replicas, but we never give it 6 endpoints.
// thus we are testing undefined behavior, at best.
This is easiest to cause in DSS but it can afflict other Strategies too.
Let's update the ARS contract to state that calculateNaturalEndpoints (hence getNaturalEndpoints too) will throw IllegalStateException if more replicas are requested than the known endpoints (for DSS, this would apply on a per-DC basis) and amend the Strategy classes to check for this.
Attachments
Attachments
Issue Links
- relates to
-
CASSANDRA-1343 gossip throws IllegalStateException
- Resolved