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

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


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

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