Matthew Biscocho created SOLR-18181:
---------------------------------------
Summary: 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: 10.0, 9.10
Reporter: Matthew Biscocho
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]