You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by jd...@apache.org on 2025/10/07 16:28:54 UTC
(solr) 03/03: tidy
This is an automated email from the ASF dual-hosted git repository.
jdyer pushed a commit to branch feature/SOLR-17945
in repository https://gitbox.apache.org/repos/asf/solr.git
commit faf3e0fa2ddbf1385bdcbd5507dda2732d14998b
Author: jdyer1 <jd...@apache.org>
AuthorDate: Tue Oct 7 11:27:09 2025 -0500
tidy
---
.../solr/client/solrj/impl/CloudHttp2SolrClientTest.java | 14 ++++++++------
1 file changed, 8 insertions(+), 6 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 1f6e6b31484..7235de5ed9d 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
@@ -257,20 +257,22 @@ public class CloudHttp2SolrClientTest extends SolrCloudTestCase {
@Test
@LogLevel("org.apache.solr.servlet.HttpSolrCall=DEBUG")
public void testHttpCspPerf() throws Exception {
- // This ensures CH2SC is caching cluster status by counting the number of logged calls to the admin endpoint.
- // too many calls to CLUSTERSTATUS might mean insufficient caching and peformance regressions!
+ // This ensures CH2SC is caching cluster status by counting the number of logged calls to the
+ // admin endpoint. Too many calls to CLUSTERSTATUS might mean insufficient caching and
+ // peformance regressions!
try {
- // BaseHttpClusterStateProvider has a background job that pre-fetches data from CLUSTERSTATUS on timed intervals
- // This can pollute this test, so we set the interval very high to prevent it from running.
+ // BaseHttpClusterStateProvider has a background job that pre-fetches data from CLUSTERSTATUS
+ // on timed intervals. This can pollute this test, so we set the interval very high to
+ // prevent it from running.
System.setProperty(SYS_PROP_CACHE_TIMEOUT_SECONDS, "" + Integer.MAX_VALUE);
-
+
String collectionName = "HTTPCSPTEST";
CollectionAdminRequest.createCollection(collectionName, "conf", 2, 1)
.process(cluster.getSolrClient());
cluster.waitForActiveCollection(collectionName, 2, 2);
try (LogListener adminLogs = LogListener.info(HttpSolrCall.class).substring("[admin]");
- CloudSolrClient solrClient = createHttpCSPBasedCloudSolrClient();) {
+ CloudSolrClient solrClient = createHttpCSPBasedCloudSolrClient(); ) {
solrClient.getClusterStateProvider().getLiveNodes(); // talks to Solr
assertEquals(1, adminLogs.getCount());