epugh commented on code in PR #2710:
URL: https://github.com/apache/solr/pull/2710#discussion_r1765362678
##########
solr/core/src/java/org/apache/solr/cli/HealthcheckTool.java:
##########
@@ -170,7 +172,15 @@ protected void runCloudTool(CloudSolrClient
cloudSolrClient, CommandLine cli) th
q = new SolrQuery("*:*");
q.setRows(0);
q.set(DISTRIB, "false");
- try (var solrClientForCollection = SolrCLI.getSolrClient(coreUrl)) {
+
+ // SolrCLI.getSolrClient converts the coreUrl back into a root Solr
url, but we need to
+ // talk to specific core so manually creating the client.
Review Comment:
I looked a bit more at the code, and decided to go with the javadoc approach!
--
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]