Skip to content

Commit

Permalink
SOLR-17577: Remove dead system property (#2888)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5f888e5)
  • Loading branch information
epugh committed Dec 2, 2024
1 parent 025c7a7 commit 91f1e95
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 15 deletions.
2 changes: 2 additions & 0 deletions solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ led to the suppression of exceptions. (Andrey Bozhko)

* SOLR-17556: "home" and "data" directories used by Solr examples have been updated to align with documented best practices. (Eric Pugh, Houston Putman)

* SOLR-17577: Remove "solr.indexfetcher.sotimeout" system property that was for optimizing replication tests. It was disabled, but not removed. (Eric Pugh)

================== 9.7.1 ==================
Bug Fixes
---------------------
Expand Down
7 changes: 1 addition & 6 deletions solr/core/src/java/org/apache/solr/handler/IndexFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,8 @@ public IndexFetcher(
useInternalCompression = ReplicationHandler.INTERNAL.equals(compress);
useExternalCompression = ReplicationHandler.EXTERNAL.equals(compress);
connTimeout = getParameter(initArgs, HttpClientUtil.PROP_CONNECTION_TIMEOUT, 30000, null);
soTimeout = getParameter(initArgs, HttpClientUtil.PROP_SO_TIMEOUT, 120000, null);

// allow a leader override for tests - you specify this in /replication follower section of
// solrconfig and some test don't want to define this
soTimeout = Integer.getInteger("solr.indexfetcher.sotimeout", -1);
if (soTimeout == -1) {
soTimeout = getParameter(initArgs, HttpClientUtil.PROP_SO_TIMEOUT, 120000, null);
}
String httpBasicAuthUser = (String) initArgs.get(HttpClientUtil.PROP_BASIC_AUTH_USER);
String httpBasicAuthPassword = (String) initArgs.get(HttpClientUtil.PROP_BASIC_AUTH_PASS);
solrClient =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ public void setUp() throws Exception {
buildUrl(followerJetty.getLocalPort(), context), DEFAULT_TEST_CORENAME);
followerClientHealthCheck =
ReplicationTestHelper.createNewSolrClient(buildUrl(followerJetty.getLocalPort(), context));

System.setProperty("solr.indexfetcher.sotimeout2", "45000");
}

public void clearIndexWithReplication() throws Exception {
Expand Down Expand Up @@ -118,7 +116,6 @@ public void tearDown() throws Exception {
followerClientHealthCheck.close();
followerClientHealthCheck = null;
}
System.clearProperty("solr.indexfetcher.sotimeout");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ public void setUp() throws Exception {
followerClient =
ReplicationTestHelper.createNewSolrClient(
buildUrl(followerJetty.getLocalPort(), context), DEFAULT_TEST_CORENAME);

System.setProperty("solr.indexfetcher.sotimeout2", "45000");
}

public void clearIndexWithReplication() throws Exception {
Expand Down Expand Up @@ -170,7 +168,6 @@ public void tearDown() throws Exception {
followerClient.close();
followerClient = null;
}
System.clearProperty("solr.indexfetcher.sotimeout");
}

static JettySolrRunner createAndStartJetty(SolrInstance instance) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ public void setUp() throws Exception {
followerClient =
ReplicationTestHelper.createNewSolrClient(
TestReplicationHandler.buildUrl(followerJetty.getLocalPort()), DEFAULT_TEST_CORENAME);

System.setProperty("solr.indexfetcher.sotimeout2", "45000");
}

@Override
Expand All @@ -118,7 +116,6 @@ public void tearDown() throws Exception {
followerClient = null;
}
System.clearProperty(TEST_URL_ALLOW_LIST);
System.clearProperty("solr.indexfetcher.sotimeout");

IndexFetcher.usableDiskSpaceProvider = originalDiskSpaceprovider;
IndexFetcher.testWait = originalTestWait;
Expand Down

0 comments on commit 91f1e95

Please sign in to comment.