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 Aroop Ganguly <ar...@icloud.com> on 2019/05/09 02:36:15 UTC

collection exists but delete by query fails


Hi 

I am on Solr 7.5 and I am issuing a delete-by-query using CloudSolrClient
The collection exists but issuing a deletebyquery is failing every single time.
I am wondering what is happening, and how to debug this.

org.apache.solr.client.solrj.SolrServerException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:995)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:816)
	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:194)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at java.util.Collections$UnmodifiableList.get(Collections.java:1309)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.directUpdate(CloudSolrClient.java:486)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1012)
	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:883)
	... 6 more

Re: collection exists but delete by query fails

Posted by Zheng Lin Edwin Yeo <ed...@gmail.com>.
Hi,

What is the query or code that you are using when you encounter the error?

Regards,
Edwin

On Thu, 9 May 2019 at 10:36, Aroop Ganguly <ar...@icloud.com> wrote:

>
>
> Hi
>
> I am on Solr 7.5 and I am issuing a delete-by-query using CloudSolrClient
> The collection exists but issuing a deletebyquery is failing every single
> time.
> I am wondering what is happening, and how to debug this.
>
> org.apache.solr.client.solrj.SolrServerException:
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>         at
> org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:995)
>         at
> org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:816)
>         at
> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:194)
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>         at java.util.ArrayList.rangeCheck(ArrayList.java:653)
>         at java.util.ArrayList.get(ArrayList.java:429)
>         at
> java.util.Collections$UnmodifiableList.get(Collections.java:1309)
>         at
> org.apache.solr.client.solrj.impl.CloudSolrClient.directUpdate(CloudSolrClient.java:486)
>         at
> org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1012)
>         at
> org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:883)
>         ... 6 more
>