lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "laigood (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-7451) ”Not enough nodes to handle the request“ when inserting data to solrcloud
Date Thu, 23 Apr 2015 07:47:38 GMT

     [ https://issues.apache.org/jira/browse/SOLR-7451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

laigood updated SOLR-7451:
--------------------------
    Description: 
I use solr5.1.0 and deploy one node with solrcloud,and create a collection with 1 shard
and 2 replica,when i use solrj to insert data,it throw ”Not enough nodes to handle the
request“,but if i create collection with 1 shard and 1 replica,it can insert successfully,also
i create another replica with admin api,it still work fine,no longer throw that exception
the full exception stack
Exception in thread "main" org.apache.solr.client.solrj.SolrServerException: org.apache.solr.common.SolrException:
Not enough nodes to handle the request
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:929)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:782)
	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:107)
	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:72)
Caused by: org.apache.solr.common.SolrException: Not enough nodes to handle the request
	at org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1052)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:839)
	... 10 more


  was:I use solr5.1.0 and deploy one node with solrcloud,and create a collection with 1
shard and 2 replica,when i use solrj to insert data,it throw ”Not enough nodes to handle
the request“,but if i create collection with 1 shard and 1 replica,it can insert successfully,also
i create another replica with admin api,it still work fine,no longer throw that exception


> ”Not enough nodes to handle the request“ when inserting data to solrcloud
> -------------------------------------------------------------------------
>
>                 Key: SOLR-7451
>                 URL: https://issues.apache.org/jira/browse/SOLR-7451
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 5.1
>            Reporter: laigood
>
> I use solr5.1.0 and deploy one node with solrcloud,and create a collection with 1 shard
and 2 replica,when i use solrj to insert data,it throw ”Not enough nodes to handle the
request“,but if i create collection with 1 shard and 1 replica,it can insert successfully,also
i create another replica with admin api,it still work fine,no longer throw that exception
> the full exception stack
> Exception in thread "main" org.apache.solr.client.solrj.SolrServerException: org.apache.solr.common.SolrException:
Not enough nodes to handle the request
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:929)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:922)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:782)
> 	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
> 	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:107)
> 	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:72)
> Caused by: org.apache.solr.common.SolrException: Not enough nodes to handle the request
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1052)
> 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:839)
> 	... 10 more



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

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


Mime
View raw message