Skip to content

Apache Lucene open-source search software

SOLR-12053: RestartWhileUpdatingTest and HdfsRestartWhileUpdatingTest are incredibly slow.

Mark Miller18edca0fb25e
diff --git a/solr/core/src/test/org/apache/solr/cloud/RestartWhileUpdatingTest.java b/solr/core/src/test/org/apache/solr/cloud/RestartWhileUpdatingTest.java
index c226fec5258..095d3edf910 100644
--- a/solr/core/src/test/org/apache/solr/cloud/RestartWhileUpdatingTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/RestartWhileUpdatingTest.java
@@ -125,7 +125,7 @@ public class RestartWhileUpdatingTest extends AbstractFullDistribZkTestBase {
int restartTimes = 1;//random().nextInt(4) + 1;;
for (int i = 0; i < restartTimes; i++) {
- Thread.sleep(random().nextInt(300000));
+ Thread.sleep(random().nextInt(30000));
stopAndStartAllReplicas();
Thread.sleep(random().nextInt(30000));
}
@@ -151,6 +151,9 @@ public class RestartWhileUpdatingTest extends AbstractFullDistribZkTestBase {
waitForRecoveriesToFinish(DEFAULT_COLLECTION, cloudClient.getZkStateReader(), false, true);
+ for (StoppableIndexingThread thread : threads) {
+ thread.join();
+ }
checkShardConsistency(false, false);
}