mirror of https://github.com/apache/lucene.git
SOLR-7599: Removed some distribTearDown methods that were left over
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1682181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bb0176fdd2
commit
8182169bb4
|
@ -38,26 +38,6 @@ public class LeaderInitiatedRecoveryOnCommitTest extends BasicDistributedZkTest
|
|||
fixShardCount(4);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void distribSetUp() throws Exception {
|
||||
super.distribSetUp();
|
||||
System.setProperty("numShards", Integer.toString(sliceCount));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void distribTearDown() throws Exception {
|
||||
System.clearProperty("numShards");
|
||||
|
||||
super.distribTearDown();
|
||||
|
||||
// close socket proxies after super.distribTearDown
|
||||
if (!proxies.isEmpty()) {
|
||||
for (SocketProxy proxy : proxies.values()) {
|
||||
proxy.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
|
|
|
@ -42,16 +42,9 @@ public class RollingRestartTest extends AbstractFullDistribZkTestBase {
|
|||
@Override
|
||||
public void distribSetUp() throws Exception {
|
||||
super.distribSetUp();
|
||||
System.setProperty("numShards", Integer.toString(sliceCount));
|
||||
useFactory("solr.StandardDirectoryFactory");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void distribTearDown() throws Exception {
|
||||
System.clearProperty("numShards");
|
||||
super.distribTearDown();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
waitForRecoveriesToFinish(false);
|
||||
|
|
|
@ -88,7 +88,6 @@ public class SharedFSAutoReplicaFailoverTest extends AbstractFullDistribZkTestBa
|
|||
public void distribSetUp() throws Exception {
|
||||
super.distribSetUp();
|
||||
useJettyDataDir = false;
|
||||
System.setProperty("solr.xml.persist", "true");
|
||||
}
|
||||
|
||||
protected String getSolrXml() {
|
||||
|
@ -261,6 +260,5 @@ public class SharedFSAutoReplicaFailoverTest extends AbstractFullDistribZkTestBa
|
|||
@Override
|
||||
public void distribTearDown() throws Exception {
|
||||
super.distribTearDown();
|
||||
System.clearProperty("solr.xml.persist");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,16 +114,6 @@ public class TestBlobHandler extends AbstractFullDistribZkTestBase {
|
|||
assertTrue(response1.isSuccess());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void distribTearDown() throws Exception {
|
||||
super.distribTearDown();
|
||||
System.clearProperty("numShards");
|
||||
System.clearProperty("zkHost");
|
||||
|
||||
// insurance
|
||||
DirectUpdateHandler2.commitOnClose = true;
|
||||
}
|
||||
|
||||
public static void postAndCheck(CloudSolrClient cloudClient, String baseUrl, String blobName, ByteBuffer bytes, int count) throws Exception {
|
||||
postData(cloudClient, baseUrl, blobName, bytes);
|
||||
|
||||
|
|
Loading…
Reference in New Issue