bianca-stanciu29 commented on code in PR #365:
URL: https://github.com/apache/cassandra-sidecar/pull/365#discussion_r3436461962
##########
server/src/main/java/org/apache/cassandra/sidecar/cluster/locator/CachedLocalTokenRanges.java:
##########
@@ -104,7 +104,7 @@ public Map<Integer, Set<TokenRange>>
localTokenRanges(String keyspace, boolean f
return Collections.emptyMap();
}
- if (metadata.getKeyspace(keyspace) == null)
+ if (metadata.getKeyspace(Metadata.quoteIfNecessary(keyspace)) == null)
Review Comment:
Fixed, moved to MetadataUtils.keyspace() which handles the null keyspace
case internally before any lookup.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]