bereng commented on a change in pull request #870:
URL: https://github.com/apache/cassandra/pull/870#discussion_r567580982
##########
File path: src/java/org/apache/cassandra/locator/TokenMetadata.java
##########
@@ -1331,6 +1331,23 @@ public EndpointsForToken getWriteEndpoints(Token token,
String keyspaceName, End
}
}
+ /**
+ * @return a (stable copy, won't be modified) datacenter to Endpoint map
for all the nodes in the cluster.
+ */
+ public ImmutableMultimap<String, InetAddressAndPort>
getDC2AllEndpoints(IEndpointSnitch snitch)
+ {
+ ImmutableMultimap.Builder<String, InetAddressAndPort> dc2Nodesbuilder
= ImmutableMultimap.builder();
+ HashSet<InetAddressAndPort> nodes = new
HashSet<InetAddressAndPort>(getAllEndpoints());
Review comment:
+1
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]