You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Tomas Eduardo Fernandez Lobbe (Jira)" <ji...@apache.org> on 2023/04/27 23:09:00 UTC

[jira] [Resolved] (SOLR-7609) ShardSplitTest NPE

     [ https://issues.apache.org/jira/browse/SOLR-7609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomas Eduardo Fernandez Lobbe resolved SOLR-7609.
-------------------------------------------------
    Fix Version/s: main (10.0)
                   9.3
         Assignee: Tomas Eduardo Fernandez Lobbe
       Resolution: Fixed

Haven't seen a failure recently, but failures weren't that frequently before so it's not really a confirmation of the fix. That said, I'm going to be optimistic and close this one. If we see new failures with the test they may be different, or at least have a different stacktrace.

> ShardSplitTest NPE
> ------------------
>
>                 Key: SOLR-7609
>                 URL: https://issues.apache.org/jira/browse/SOLR-7609
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Steven Rowe
>            Assignee: Tomas Eduardo Fernandez Lobbe
>            Priority: Minor
>             Fix For: main (10.0), 9.3
>
>         Attachments: ShardSplitTest.NPE.log
>
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> 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):
> {noformat}
>    [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)
> {noformat}
> Line 547 of {{ShardSplitTest.java}} is:
> {code:java}
>       idVsVersion.put(document.getFieldValue("id").toString(), document.getFieldValue("_version_").toString());
> {code}
> Skimming the code, it's not obvious what could be null.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org