lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe (JIRA) <>
Subject [jira] [Created] (SOLR-12041) NPE in ChaosMonkeyNothingIsSafeWithPullReplicasTest
Date Tue, 27 Feb 2018 20:57:00 GMT
Tomás Fernández Löbbe created SOLR-12041:

             Summary: NPE in ChaosMonkeyNothingIsSafeWithPullReplicasTest
                 Key: SOLR-12041
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Tests
            Reporter: Tomás Fernández Löbbe
            Assignee: Tomás Fernández Löbbe

I found this failure in Steve’s Jenkins (
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=ChaosMonkeyNothingIsSafeWithPullReplicasTest
-Dtests.method=test -Dtests.seed=FEC5BFCB68EE30B1 -Dtests.slow=true -Dtests.locale=he-IL -Dtests.timezone=Pacific/Midway
-Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] ERROR   37.8s J8  | ChaosMonkeyNothingIsSafeWithPullReplicasTest.test <<<
   [junit4]    > Throwable #1: java.lang.NullPointerException
   [junit4]    >        at __randomizedtesting.SeedInfo.seed([FEC5BFCB68EE30B1:76918011C6125D49]:0)
   [junit4]    >        at
   [junit4]    >        at
   [junit4]    >        at
   [junit4]    >        at org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsFixedStatement.callStatement(
   [junit4]    >        at org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsStatement.evaluate(
   [junit4]    >        at

It seems to be caused by this code:
    for(Slice s:collection.getSlices()) {
      Replica leader = s.getLeader();
      long leaderIndexVersion = -1;
      while (!timeout.hasTimedOut()) {
        —> leaderIndexVersion = getIndexVersion(leader);
and I believe the problem is that the shard may not have a leader at the time of this check.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message