Apache Lucene open-source search software
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.
Timothy Potterc7b6dfad629f
diff --git a/solr/core/src/test/org/apache/solr/cloud/ReplicationFactorTest.java b/solr/core/src/test/org/apache/solr/cloud/ReplicationFactorTest.javaindex abed059a8b4..86ef1f3d0a8 100644--- a/solr/core/src/test/org/apache/solr/cloud/ReplicationFactorTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/ReplicationFactorTest.java@@ -76,11 +76,8 @@ public class ReplicationFactorTest extends AbstractFullDistribZkTestBase {@Override@Afterpublic void tearDown() throws Exception {- if (!proxies.isEmpty()) {- for (SocketProxy proxy : proxies.values()) {- proxy.close();- }- }++ log.info("tearing down replicationFactorTest!");System.clearProperty("numShards");@@ -88,7 +85,14 @@ public class ReplicationFactorTest extends AbstractFullDistribZkTestBase {super.tearDown();} catch (Exception exc) {}- resetExceptionIgnores();+ resetExceptionIgnores();++ log.info("super.tearDown complete, closing all socket proxies");+ if (!proxies.isEmpty()) {+ for (SocketProxy proxy : proxies.values()) {+ proxy.close();+ }+ }}/**@@ -142,8 +146,10 @@ public class ReplicationFactorTest extends AbstractFullDistribZkTestBase {// test handling when not using direct updateslog.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 {