You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2017/12/06 15:24:39 UTC
lucene-solr:branch_7x: tests: raise chaosmonkey no stop warn time.
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x 3f895cf08 -> f3efa882e
tests: raise chaosmonkey no stop warn time.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f3efa882
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f3efa882
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f3efa882
Branch: refs/heads/branch_7x
Commit: f3efa882e3715fecd5a21aab8afbcc8800f50008
Parents: 3f895cf
Author: Mark Miller <ma...@apache.org>
Authored: Wed Dec 6 09:24:05 2017 -0600
Committer: Mark Miller <ma...@apache.org>
Committed: Wed Dec 6 09:24:33 2017 -0600
----------------------------------------------------------------------
.../src/java/org/apache/solr/cloud/ChaosMonkey.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f3efa882/solr/test-framework/src/java/org/apache/solr/cloud/ChaosMonkey.java
----------------------------------------------------------------------
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 86f8906..b8873fa 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!");
}
}