serhiy-bzhezytskyy commented on code in PR #4760:
URL: https://github.com/apache/solr/pull/4760#discussion_r3822316312


##########
solr/core/src/test/org/apache/solr/update/DeleteByIdWithRouterFieldTest.java:
##########
@@ -79,10 +79,12 @@ public static void setupClusterAndCollection() throws 
Exception {
     solrClient = cluster.getSolrClient(COLL);
 
     ClusterState clusterState = cluster.getSolrClient().getClusterState();
-    for (Replica replica : clusterState.getCollection(COLL).getReplicas()) {
-      clients.add(
-          new CollectionScopedSolrClient(
-              cluster.getReplicaJetty(replica).getSolrClient(), 
replica.getCoreName()));
+    for (Slice slice : clusterState.getCollection(COLL)) {
+      for (Replica replica : slice.getReplicas()) {
+        clients.add(
+            new CollectionScopedSolrClient(
+                cluster.getReplicaJetty(replica).getSolrClient(), 
replica.getCoreName()));
+      }

Review Comment:
   Done -- same fix.
   
   AI-assisted (Claude Sonnet 5)



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