mirror of https://github.com/apache/lucene.git
tests: parameterize
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1425818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a3d1252e7d
commit
15bf918824
|
@ -56,6 +56,9 @@ public class ChaosMonkey {
|
|||
private static final int EXPIRE_PERCENT = 10; // 0 - 10 = 0 - 100%
|
||||
private Map<String,List<CloudJettyRunner>> shardToJetty;
|
||||
|
||||
private static final boolean CONN_LOSS = Boolean.valueOf(System.getProperty("solr.tests.cloud.cm.connloss", "true"));
|
||||
private static final boolean EXP = Boolean.valueOf(System.getProperty("solr.tests.cloud.cm.exp", "true"));
|
||||
|
||||
private ZkTestServer zkServer;
|
||||
private ZkStateReader zkStateReader;
|
||||
private String collection;
|
||||
|
@ -83,9 +86,9 @@ public class ChaosMonkey {
|
|||
this.zkStateReader = zkStateReader;
|
||||
this.collection = collection;
|
||||
Random random = LuceneTestCase.random();
|
||||
expireSessions = true; //= random.nextBoolean();
|
||||
expireSessions = EXP; //= random.nextBoolean();
|
||||
|
||||
causeConnectionLoss = true;//= random.nextBoolean();
|
||||
causeConnectionLoss = CONN_LOSS;//= random.nextBoolean();
|
||||
monkeyLog("init - expire sessions:" + expireSessions
|
||||
+ " cause connection loss:" + causeConnectionLoss);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue