gerlowskija commented on code in PR #3238:
URL: https://github.com/apache/solr/pull/3238#discussion_r2047713433


##########
solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java:
##########
@@ -666,11 +669,13 @@ public void testNonRetryableRequests() throws Exception {
           }
 
           ModifiableSolrParams params = new ModifiableSolrParams();
-          params.set("qt", adminPath);
           params.set("action", "foobar"); // this should cause an error
-          QueryRequest req = new QueryRequest(params);
+
+          var request =
+              new GenericSolrRequest(METHOD.GET, adminPath, 
SolrRequestType.ADMIN, params);
+          request.setRequiresCollection(false);

Review Comment:
   Done



##########
solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientRetryTest.java:
##########
@@ -55,14 +56,17 @@ public void testRetry() throws Exception {
     solrClient.add(collectionName, new SolrInputDocument("id", "1"));
 
     ModifiableSolrParams params = new ModifiableSolrParams();
-    params.set(CommonParams.QT, "/admin/metrics");
     String updateRequestCountKey =
         
"solr.core.testRetry.shard1.replica_n1:UPDATE./update.requestTimes:count";
     params.set("key", updateRequestCountKey);
     params.set("indent", "true");
+    params.set(CommonParams.WT, "xml");
 
-    QueryResponse response = solrClient.query(collectionName, params, 
SolrRequest.METHOD.GET);
-    NamedList<Object> namedList = response.getResponse();
+    var metricsRequest =
+        new GenericSolrRequest(METHOD.GET, "/admin/metrics", 
SolrRequestType.ADMIN, params);
+    metricsRequest.setRequiresCollection(false);

Review Comment:
   Done



-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to