vyatkinv commented on code in PR #4320:
URL: https://github.com/apache/solr/pull/4320#discussion_r3312503019


##########
solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/TupleStream.java:
##########
@@ -213,14 +225,67 @@ public static List<String> getShards(
       }
     } else {
       shards =
-          getReplicas(zkHost, collection, streamContext, 
requestParams).stream()
+          getReplicas(solrConnection, collection, streamContext, 
requestParams).stream()
               .map(Replica::getCoreUrl)
               .collect(Collectors.toList());
     }
 
     return shards;
   }
 
+  public static CloudSolrClient.CloudSolrClientConnection buildSolrConnection(

Review Comment:
   good idea. 
   We can generally make `getConnectionForCollection` private - it should no 
longer be used directly in streams



-- 
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]

Reply via email to