This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch branch_10_0
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_10_0 by this push:
     new 24204b522e1 SOLR-18024 Fix IOException in CloudHttp2SolrClientTest 
(#3956)
24204b522e1 is described below

commit 24204b522e1b024dfb210cd6c80707d63d043ec2
Author: Jan Høydahl <[email protected]>
AuthorDate: Wed Dec 17 11:47:48 2025 +0100

    SOLR-18024 Fix IOException in CloudHttp2SolrClientTest (#3956)
    
    (cherry picked from commit db12cde2d39d7228c13ef9550f2ffba1e5cf3e49)
---
 .../org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java
 
b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java
index 536f89c4962..e80c60242a7 100644
--- 
a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java
+++ 
b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java
@@ -302,7 +302,7 @@ public class CloudHttp2SolrClientTest extends 
SolrCloudTestCase {
 
     String collectionName = "HTTPCSPTEST";
     CollectionAdminRequest.createCollection(collectionName, "conf", 2, 1)
-        .process(getRandomClient());
+        .process(cluster.getSolrClient());
     cluster.waitForActiveCollection(collectionName, 2, 2);
 
     try (LogListener adminLogs = 
LogListener.info(HttpSolrCall.class).substring("[admin]");
@@ -343,7 +343,7 @@ public class CloudHttp2SolrClientTest extends 
SolrCloudTestCase {
     }
 
     // Clean up the collection to allow test iterations to succeed
-    
CollectionAdminRequest.deleteCollection(collectionName).process(getRandomClient());
+    
CollectionAdminRequest.deleteCollection(collectionName).process(cluster.getSolrClient());
   }
 
   private CloudSolrClient createHttpCSPBasedCloudSolrClient() {

Reply via email to