mirror of https://github.com/apache/lucene.git
SOLR-6157: Hang occurred again, somewhere in tearDown ... changing the code to close the socket proxies after super.tearDown, if that doesn't work, I'll add the AwaitsFix back to the code to ignore this test.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1604868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f220845368
commit
c7b6dfad62
|
@ -76,11 +76,8 @@ public class ReplicationFactorTest extends AbstractFullDistribZkTestBase {
|
|||
@Override
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
if (!proxies.isEmpty()) {
|
||||
for (SocketProxy proxy : proxies.values()) {
|
||||
proxy.close();
|
||||
}
|
||||
}
|
||||
|
||||
log.info("tearing down replicationFactorTest!");
|
||||
|
||||
System.clearProperty("numShards");
|
||||
|
||||
|
@ -89,6 +86,13 @@ public class ReplicationFactorTest extends AbstractFullDistribZkTestBase {
|
|||
} catch (Exception exc) {}
|
||||
|
||||
resetExceptionIgnores();
|
||||
|
||||
log.info("super.tearDown complete, closing all socket proxies");
|
||||
if (!proxies.isEmpty()) {
|
||||
for (SocketProxy proxy : proxies.values()) {
|
||||
proxy.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -143,7 +147,9 @@ public class ReplicationFactorTest extends AbstractFullDistribZkTestBase {
|
|||
log.info("Now testing replication factor handling for repfacttest_c8n_2x2");
|
||||
testRf2NotUsingDirectUpdates();
|
||||
|
||||
log.info("replication factor testing complete");
|
||||
waitForThingsToLevelOut(30000);
|
||||
log.info("replication factor testing complete! final clusterState is: "+
|
||||
cloudClient.getZkStateReader().getClusterState());
|
||||
}
|
||||
|
||||
protected void testRf2NotUsingDirectUpdates() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue