dsmiley commented on a change in pull request #708: URL: https://github.com/apache/solr/pull/708#discussion_r814905630
########## File path: solr/core/src/java/org/apache/solr/core/snapshots/SolrSnapshotsTool.java ########## @@ -199,7 +200,7 @@ public void describeSnapshot(String collectionName, String snapshotName) { + " is not found for collection " + collectionName); } - DocCollection collectionState = solrClient.getZkStateReader().getClusterState().getCollection(collectionName); + DocCollection collectionState = ZkStateReader.from(solrClient).getClusterState().getCollection(collectionName); Review comment: In most/all cases `ZkStateReader.from(solrClient).getClusterState()` isn't needed -- just call solrClient.getClusterStateProvider().getClusterState() (or something like that). I won't repeat this comment; you can find them. -- 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: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org