Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7609

ShardSplitTest NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • main (10.0), 9.3
    • None
    • None

    Description

      I'm guessing this is a test bug, but the seed doesn't reproduce for me (tried on the same Linux machine it occurred on and on OS X):

         [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=ShardSplitTest -Dtests.method=test -Dtests.seed=9318DDA46578ECF9 -Dtests.slow=true -Dtests.locale=is -Dtests.timezone=America/St_Vincent -Dtests.asserts=true -Dtests.file.encoding=US-ASCII
         [junit4] ERROR   55.8s J6  | ShardSplitTest.test <<<
         [junit4]    > Throwable #1: java.lang.NullPointerException
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([9318DDA46578ECF9:1B4CE27ECB848101]:0)
         [junit4]    > 	at org.apache.solr.cloud.ShardSplitTest.logDebugHelp(ShardSplitTest.java:547)
         [junit4]    > 	at org.apache.solr.cloud.ShardSplitTest.checkDocCountsAndShardStates(ShardSplitTest.java:438)
         [junit4]    > 	at org.apache.solr.cloud.ShardSplitTest.splitByUniqueKeyTest(ShardSplitTest.java:222)
         [junit4]    > 	at org.apache.solr.cloud.ShardSplitTest.test(ShardSplitTest.java:84)
         [junit4]    > 	at org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsFixedStatement.callStatement(BaseDistributedSearchTestCase.java:960)
         [junit4]    > 	at org.apache.solr.BaseDistributedSearchTestCase$ShardsRepeatRule$ShardsStatement.evaluate(BaseDistributedSearchTestCase.java:935)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:745)
      

      Line 547 of ShardSplitTest.java is:

            idVsVersion.put(document.getFieldValue("id").toString(), document.getFieldValue("_version_").toString());
      

      Skimming the code, it's not obvious what could be null.

      Attachments

        1. ShardSplitTest.NPE.log
          1.25 MB
          Steven Rowe

        Issue Links

          Activity

            People

              tflobbe Tomas Eduardo Fernandez Lobbe
              sarowe Steven Rowe
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 10m
                  4h 10m