[
https://issues.apache.org/jira/browse/SOLR-3722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431425#comment-13431425
]
Hoss Man commented on SOLR-3722:
--------------------------------
in addition to this, we should consider updating the components that use this
pattern to check the arrays for null first and taking one or more actions...
1) log a warning about which docs have missing info?
2) inject placeholder data into the response? (perhaps just a "null" value
with the corrisponding id key?)
> NPE from NamedList constructor if shard fails to return auxilury data about
> all docs
> ------------------------------------------------------------------------------------
>
> Key: SOLR-3722
> URL: https://issues.apache.org/jira/browse/SOLR-3722
> Project: Solr
> Issue Type: Bug
> Affects Versions: 3.6.1
> Reporter: Hoss Man
>
> Michelle Talley reported a problem on the user w/ distributed search .. root
> issue isn't understood yet, but a secondary problem was that when adding
> "debugQuery=true" this NPE was thrown...
> {noformat}
> java.lang.NullPointerException
> at
> org.apache.solr.common.util.NamedList.nameValueMapToList(NamedList.java:110)
> at
> org.apache.solr.common.util.NamedList.<init>(NamedList.java:75)
> at
> org.apache.solr.common.util.SimpleOrderedMap.<init>(SimpleOrderedMap.java:58)
> at
> org.apache.solr.handler.component.DebugComponent.finishStage(DebugComponent.java:130)
> {noformat}
> the cause evidently relating to a mismatch between the rb.resultIds list of
> ShardDocs, and the score explanation output from each shard. The pattern of
> code in DebugComponent is common among several components, and i think we
> should "fix" NamedList to ignore nulls in it's {{Map.Entry<String, T>[]}}
> constructor
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]