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

Crawdaddy commented on SOLR-8009:
---------------------------------

Sorry for the ambiguity, Erick.  This is on the latest, 5.3, but it affects 
earlier versions as well IIRC.

Here was my scenario:
1. Create a 5 shard, implicit route collection.  Each shard is hosted by its 
own node.
curl 
"http://localhost:8983/solr/admin/collections?action=CREATE&name=<collection>&router.name=implicit&shards=shard-1,shard-2,shard-3,shard-4,shard-5"

2. Index a bunch of documents.  In my case it was ~100M documents though I 
doubt that's relevant.  Auto commit of 15 seconds during indexing, something 
like that.

3. Attempt a GET using one of the IDs you've indexed, either through the /get 
handler:

http://<host>:8983/solr/<collection>/get?id=<some_id>

Or, in my case, programmatically within a custom SearchComponent:
SolrQuery query = new SolrQuery();
query.setParam("id", url_for_lookup);
SolrQueryRequest req = new LocalSolrQueryRequest(solrCore, query);
SolrRequestHandler handler = solrCore.getRequestHandler("/get");
SolrQueryResponse rsp = new SolrQueryResponse();
req.getCore().execute(handler, req, rsp);

In either case, I get the NPE and stack trace above.


> RealTimeGet NPE with implicit router-based collection
> -----------------------------------------------------
>
>                 Key: SOLR-8009
>                 URL: https://issues.apache.org/jira/browse/SOLR-8009
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 5.3
>            Reporter: Crawdaddy
>              Labels: get
>
> A NPE is thrown when attempting a GET against an implicit-router based  
> collection:
> ERROR - 2015-09-03 21:26:24.308; [c:rti s:shard-3 r:core_node1 
> x:rti_shard-3_replica1] org.apache.solr.common.SolrException; 
> java.lang.NullPointerException
>       at 
> org.apache.solr.handler.component.RealTimeGetComponent.createSubRequests(RealTimeGetComponent.java:405)
>       at 
> org.apache.solr.handler.component.RealTimeGetComponent.distributedProcess(RealTimeGetComponent.java:362)
>       at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:327)
>       at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
>       at org.apache.solr.core.SolrCore.execute(SolrCore.java:2068)
>       at 
> com.twe.solr.searchcomponent.TargetSetDataGenerator$1.run(TargetSetDataGenerator.java:424)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to