[
https://issues.apache.org/jira/browse/SOLR-18181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18075696#comment-18075696
]
ASF subversion and git services commented on SOLR-18181:
--------------------------------------------------------
Commit 36b61d4e477dfc90f60ce59965c7e30b0b281c48 in solr's branch
refs/heads/branch_9x from Matthew Biscocho
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=36b61d4e477 ]
SOLR-18181: ValueSourceAugmenter NPE when rows exceed 1000 and scores requested
(#4314)
Fixed an NPE caused by queries using ValueSourceAugmenter and querying for >
1000 rows with score. Moved to overriding non-deprecated transform method and
correctly referencing DocIterationInfo for score.
> ValueSourceAugmenter NPE when rows exceed 1000 and scores requested
> -------------------------------------------------------------------
>
> Key: SOLR-18181
> URL: https://issues.apache.org/jira/browse/SOLR-18181
> Project: Solr
> Issue Type: Bug
> Affects Versions: 9.10
> Reporter: Matthew Biscocho
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 9.11
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> There is a bug with ValueSourceAugmenter causing NPE from changes in
> SOLR-17775.
> Reproduce this with a fl parameter using a function query, requesting score
> and any number of rows > 1000. We then get an NPE
> [here.|https://github.com/apache/solr/blob/f7ad4f1019891bc0eeed346dab1b3770f301e163/solr/core/src/java/org/apache/solr/response/transform/ValueSourceAugmenter.java#L158]
> That is because when cache misses, it falls back to on demand calculation
> but this line checked SolrDocument which only has stored field and docValues
> instead of DocIterationInfo which actually has the score info resulting in
> null.
>
> Caused by: java.lang.NullPointerException: Cannot invoke
> "java.lang.Float.floatValue()" because the return value of
> "org.apache.solr.common.SolrDocument.get(Object)" is null
> at
> org.apache.solr.response.transform.ValueSourceAugmenter.transform(ValueSourceAugmenter.java:157)
> at
> org.apache.solr.response.transform.DocTransformer.transform(DocTransformer.java:109)
> at
> org.apache.solr.response.transform.DocTransformer.transform(DocTransformer.java:126)
> at
> org.apache.solr.response.transform.DocTransformers.transform(DocTransformers.java:78)
> at org.apache.solr.response.DocsStreamer.next(DocsStreamer.java:102)
> at org.apache.solr.response.DocsStreamer.next(DocsStreamer.java:57)
> at
> org.apache.solr.response.TextResponseWriter.writeDocuments(TextResponseWriter.java:259)
> at
> org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:197)
>
> h1.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]