Skip to content

Apache Lucene open-source search software

tests: raise chaosmonkey no stop warn time.

Mark Miller5440d925d389
diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/ChaosMonkey.java b/solr/test-framework/src/java/org/apache/solr/cloud/ChaosMonkey.java
index 86f89069c42..b8873fa3824 100644
--- a/solr/test-framework/src/java/org/apache/solr/cloud/ChaosMonkey.java
+++ b/solr/test-framework/src/java/org/apache/solr/cloud/ChaosMonkey.java
@@ -62,6 +62,7 @@ import org.slf4j.LoggerFactory;
public class ChaosMonkey {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
+ private static final int NO_STOP_WARN_TIME = 60;
private static final int CONLOSS_PERCENT = 10; // 0 - 10 = 0 - 100%
private static final int EXPIRE_PERCENT = 10; // 0 - 10 = 0 - 100%
private Map<String,List<CloudJettyRunner>> shardToJetty;
@@ -583,8 +584,8 @@ public class ChaosMonkey {
DirectUpdateHandler2.commitOnClose = true;
double runtime = runTimer.getTime()/1000.0f;
- if (runtime > 45 && stops.get() == 0) {
- LuceneTestCase.fail("The Monkey ran for over 45 seconds and no jetties were stopped - this is worth investigating!");
+ if (runtime > NO_STOP_WARN_TIME && stops.get() == 0) {
+ LuceneTestCase.fail("The Monkey ran for over " + NO_STOP_WARN_TIME +" seconds and no jetties were stopped - this is worth investigating!");
}
}