Tomás Fernández Löbbe created SOLR-10604:
--------------------------------------------

             Summary: ChaosMonkey doesn't expire session or cause connection 
losses by default
                 Key: SOLR-10604
                 URL: https://issues.apache.org/jira/browse/SOLR-10604
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Tests
            Reporter: Tomás Fernández Löbbe


It looks like the intention in ChaosMonkey is that, unless explicitly set, it 
should randomly cause session expiration and connection loss:
{code:java}
    if (EXP != null) {
      expireSessions = EXP; 
    } else {
      expireSessions = chaosRandom.nextBoolean();
    }
    if (CONN_LOSS != null) {
      causeConnectionLoss = CONN_LOSS;
    } else {
      causeConnectionLoss = chaosRandom.nextBoolean();
    }
{code}
but {{EXP}} and {{CONN_LOSS}} are defined as:
{code:java}
  private static final Boolean CONN_LOSS = 
Boolean.valueOf(System.getProperty("solr.tests.cloud.cm.connloss", null));
private static final Boolean EXP = 
Boolean.valueOf(System.getProperty("solr.tests.cloud.cm.exp", null));
{code}
Which makes them "false" (not null) unless those properties are set. 
The fix is trivial, but we should see how it affects our tests before submitting




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to