You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Patanachai Tangchaisin (JIRA)" <ji...@apache.org> on 2013/04/10 10:04:15 UTC

[jira] [Commented] (SOLR-4186) QueryComponent NPE

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

Patanachai Tangchaisin commented on SOLR-4186:
----------------------------------------------

After digging into this, a real cause of a problem is when shards.tolerant = true and there is a Exception during retrieving field request. 

A solution is depend on how client expect Solr to behave when error occurs
- If client is OK if Solr returns less document than request (rows parameter) then skipping a shard request which has an error can be a solution.
- If client must have a same number of document as rows, then retrying would be another options
- Otherwise, wrapping this exception and throw to client with a proper error message.
                
> QueryComponent NPE
> ------------------
>
>                 Key: SOLR-4186
>                 URL: https://issues.apache.org/jira/browse/SOLR-4186
>             Project: Solr
>          Issue Type: Bug
>          Components: search, SolrCloud
>    Affects Versions: 4.0, 5.0
>         Environment: recent trunk exports
>            Reporter: Markus Jelsma
>             Fix For: 4.3
>
>
> Similar to SOLR-4049, the QueryComponent throws the following NPE in case a distributed search fails for some reason. This bug has been around for at least one or two weeks.
> {code}
> 2012-12-14 10:00:41,611 ERROR [solr.servlet.SolrDispatchFilter] - [http-8080-exec-5] - : null:java.lang.NullPointerException
>         at org.apache.solr.handler.component.QueryComponent.returnFields(QueryComponent.java:967)
>         at org.apache.solr.handler.component.QueryComponent.handleRegularResponses(QueryComponent.java:629)
>         at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:604)
>         at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:311)
>         at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:146)
>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:1818)
>         at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:479)
>         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:279)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>         at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>         at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:744)
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org