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:
Timothy Potter 2014-06-23 16:26:08 +00:00
parent f220845368
commit c7b6dfad62
1 changed files with 14 additions and 8 deletions

View File

@ -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 {