[ 
https://issues.apache.org/jira/browse/SOLR-11768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17021519#comment-17021519
 ] 

Kevin Risden commented on SOLR-11768:
-------------------------------------

So I debugged a similar issue to this and the schema was updated without 
reindexing the underlying collection. The older documents didn't have docValues 
and so the ID field came back as "null" which resulted in the NPE.

It is really dangerous to change the schema and not completely rebuild the 
collection. Reindexing over doesn't necessarily fully replace documents.

It would be nice to fix this, but in case anyone else runs into this, make sure 
you don't change the uniqueKey field type  definition without fully reindexing 
preferably into a new collection.

> NPE in QueryComponent
> ---------------------
>
>                 Key: SOLR-11768
>                 URL: https://issues.apache.org/jira/browse/SOLR-11768
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 7.1
>            Reporter: Markus Jelsma
>            Priority: Major
>
> Got this in the logs for almost all queries.
> {code}
> null:java.lang.NullPointerException
>       at 
> org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:940)
>       at 
> org.apache.solr.handler.component.QueryComponent.handleRegularResponses(QueryComponent.java:585)
>       at 
> org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:564)
>       at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:423)
>       at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:177)
>       at org.apache.solr.core.SolrCore.execute(SolrCore.java:2484)
>       at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:720)
>       at org.apache.solr.servlet.HttpSolrCall.call(HttpSolr
> {code}
> Yes it is a collection that got docValues for ID field recently. But, the 
> same collection is reindexed automatically every 2 hours orso. The collection 
> was not deleted and reindexed, just indexed over the existing documents, not 
> updating very old documents. 
> For now i reverted docValues=true and it is solved.
> Some queries probably contained those older entries that did not get 
> docValues for the ID.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to