Github user aweisberg commented on a diff in the pull request:
https://github.com/apache/cassandra/pull/224#discussion_r188436562
--- Diff: src/java/org/apache/cassandra/locator/TokenMetadata.java ---
@@ -1204,21 +1205,21 @@ private String printPendingRanges()
return sb.toString();
}
- public Collection<InetAddressAndPort> pendingEndpointsFor(Token token,
String keyspaceName)
+ public Replicas pendingEndpointsFor(Token token, String keyspaceName)
{
PendingRangeMaps pendingRangeMaps =
this.pendingRanges.get(keyspaceName);
if (pendingRangeMaps == null)
- return Collections.emptyList();
+ return new ReplicaList(0);
--- End diff --
Use a singleton immutable empty list?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]