You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sudhakar Maddineni <ma...@gmail.com> on 2013/04/22 21:52:42 UTC
Solr Cloud 4.2 - Distributed Requests failing with NPE
Hi,
We recently upgraded our solr version from 4.1 to 4.2 and started seeing
below exceptions when running distributed queries:
Any idea what we are missing here -
http://
<solr-host-1:8080>/solr/core1/select?q=*%3A*&wt=json&indent=true&shards=<solr-host-1:8080>/solr/core1
http://
<solr-host-1:8080>/solr/core1/select?q=*%3A*&wt=json&indent=true&shards=<solr-host-2:8080>/solr/core1
http://
<solr-host-1:8080>/solr/core1/select?q=*%3A*&wt=json&indent=true&shards=<solr-host-3:8080>/solr/core1
"error":{
"trace":"java.lang.NullPointerException\n\tat
org.apache.solr.handler.component.HttpShardHandler.checkDistributed(HttpShardHandler.java:340)\n\tat
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:182)\n\tat
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)\n\tat
org.apache.solr.core.SolrCore.execute(SolrCore.java:1797)\n\tat
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343)\n\tat
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)\n\tat
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)\n\tat
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\n\tat
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)\n\tat
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)\n\tat
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)\n\tat
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\n\tat
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)\n\tat
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)\n\tat
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)\n\tat
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)\n\tat
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)\n\tat
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)\n\tat
java.lang.Thread.run(Unknown Source)\n",
"code":500}}
Thanks,Sudhakar.
Re: Solr Cloud 4.2 - Distributed Requests failing with NPE
Posted by Sudhakar Maddineni <ma...@gmail.com>.
Thank you Hoss for looking into it.
-Sudhakar.
On Thu, Apr 25, 2013 at 6:50 PM, Chris Hostetter
<ho...@fucit.org>wrote:
>
> : "trace":"java.lang.NullPointerException\r\n\tat
> :
> org.apache.solr.handler.component.HttpShardHandler.checkDistributed(HttpShardHandler.java:340)\r\n\tat
> :
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:182)\r\n\tat
>
> yea, definitely a bug.
>
> Raintung reported this recently, and made a patch available...
>
> https://issues.apache.org/jira/browse/SOLR-4705
>
>
> -Hoss
>
Re: Solr Cloud 4.2 - Distributed Requests failing with NPE
Posted by Chris Hostetter <ho...@fucit.org>.
: "trace":"java.lang.NullPointerException\r\n\tat
: org.apache.solr.handler.component.HttpShardHandler.checkDistributed(HttpShardHandler.java:340)\r\n\tat
: org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:182)\r\n\tat
yea, definitely a bug.
Raintung reported this recently, and made a patch available...
https://issues.apache.org/jira/browse/SOLR-4705
-Hoss
Re: Solr Cloud 4.2 - Distributed Requests failing with NPE
Posted by Sudhakar Maddineni <ma...@gmail.com>.
Just tried the same queries with the 'example' in solr 4.2 build and
getting same issue:
http://localhost:8983/solr/collection1/select?q=*%3A*&wt=json&indent=true&shards=localhost:7574/solr/collection1
"trace":"java.lang.NullPointerException\r\n\tat
org.apache.solr.handler.component.HttpShardHandler.checkDistributed(HttpShardHandler.java:340)\r\n\tat
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:182)\r\n\tat
These are working fine:
http://localhost:8983/solr/collection1/select?q=*%3A*&wt=json&indent=true&shards=shard1
http://localhost:8983/solr/collection1/select?q=*%3A*&wt=json&indent=true&shards=shard2
Here is the cluster state:
{"collection1":{
"shards":{
"shard1":{
"range":"80000000-ffffffff",
"state":"active",
"replicas":{"10.88.160.145:8983_solr_collection1":{
"shard":"shard1",
"state":"active",
"core":"collection1",
"collection":"collection1",
"node_name":"10.88.160.145:8983_solr",
"base_url":"http://10.88.160.145:8983/solr",
"leader":"true"}}},
"shard2":{
"range":"0-7fffffff",
"state":"active",
"replicas":{"10.88.160.145:7574_solr_collection1":{
"shard":"shard2",
"state":"active",
"core":"collection1",
"collection":"collection1",
"node_name":"10.88.160.145:7574_solr",
"base_url":"http://10.88.160.145:7574/solr",
"leader":"true"}}}},
"router":"compositeId"}}
Thanks,Sudhakar.
On Mon, Apr 22, 2013 at 12:52 PM, Sudhakar Maddineni <maddinenidev@gmail.com
> wrote:
> Hi,
> We recently upgraded our solr version from 4.1 to 4.2 and started seeing
> below exceptions when running distributed queries:
> Any idea what we are missing here -
>
> http://
> <solr-host-1:8080>/solr/core1/select?q=*%3A*&wt=json&indent=true&shards=<solr-host-1:8080>/solr/core1
> http://
> <solr-host-1:8080>/solr/core1/select?q=*%3A*&wt=json&indent=true&shards=<solr-host-2:8080>/solr/core1
> http://
> <solr-host-1:8080>/solr/core1/select?q=*%3A*&wt=json&indent=true&shards=<solr-host-3:8080>/solr/core1
>
> "error":{
> "trace":"java.lang.NullPointerException\n\tat
> org.apache.solr.handler.component.HttpShardHandler.checkDistributed(HttpShardHandler.java:340)\n\tat
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:182)\n\tat
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)\n\tat
> org.apache.solr.core.SolrCore.execute(SolrCore.java:1797)\n\tat
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:637)\n\tat
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:343)\n\tat
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)\n\tat
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)\n\tat
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\n\tat
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)\n\tat
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)\n\tat
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)\n\tat
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\n\tat
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)\n\tat
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)\n\tat
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)\n\tat
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)\n\tat
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)\n\tat
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)\n\tat
> java.lang.Thread.run(Unknown Source)\n",
> "code":500}}
>
>
> Thanks,Sudhakar.
>