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

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


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

commit 522e5a9d95c8c7eafb7cad029eaaad81e06eba15
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 794874a5f19..8fa2a7d0ab2 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
@@ -264,7 +264,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]");
@@ -305,7 +305,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