Unavailable Shard Exception

Hi,

I came across the following error while indexing when I have deleted
some index folders from ES cluster

UnavailableShardsException[[2012-03-07][0] [2] shardIt, [0] active :
Timeout waiting for [1m], request:
org.elasticsearch.action.bulk.BulkShardRequest@7403e02a]

But I have not deleted "2012-03-07" folder.

Note : Indexing was working fine before deleting Index folders.

Cluster Configuration:

number_of_shards: 1
number_of_replicas: 1

How to get rid of this conflict.

Any help is much appreciated.....

Regards,
-Vibin

Hi,

It looks like the problem I just had my self. I was trying to create an
index an use it right away, but couldn't because of a timing issue. Try
this call after you have deleted your index:

  •    node.client().admin().cluster().health(new 
    

ClusterHealthRequest(INDEXNAME).waitForActiveShards(1)).actionGet();
*
I hope this helps.

Regards...

Den torsdag den 8. marts 2012 06.55.21 UTC+1 skrev vibin dhas:

Hi,

I came across the following error while indexing when I have deleted
some index folders from ES cluster

UnavailableShardsException[[2012-03-07][0] [2] shardIt, [0] active :
Timeout waiting for [1m], request:
org.elasticsearch.action.bulk.BulkShardRequest@7403e02a]

But I have not deleted "2012-03-07" folder.

Note : Indexing was working fine before deleting Index folders.

Cluster Configuration:

number_of_shards: 1
number_of_replicas: 1

How to get rid of this conflict.

Any help is much appreciated.....

Regards,
-Vibin

Thank u Christian,

Actually we have deleted index folders unknowingly [We did a manual
delete]. Is it possible to rectify this exception?

On Mar 8, 2:26 pm, Christian von Wendt-Jensen csj.the....@gmail.com
wrote:

Hi,

It looks like the problem I just had my self. I was trying to create an
index an use it right away, but couldn't because of a timing issue. Try
this call after you have deleted your index:

  •    node.client().admin().cluster().health(new
    

ClusterHealthRequest(INDEXNAME).waitForActiveShards(1)).actionGet();
*
I hope this helps.

Regards...

Den torsdag den 8. marts 2012 06.55.21 UTC+1 skrev vibin dhas:

Hi,

I came across the following error while indexing when I have deleted
some index folders from ES cluster

UnavailableShardsException[[2012-03-07][0] [2] shardIt, [0] active :
Timeout waiting for [1m], request:
org.elasticsearch.action.bulk.BulkShardRequest@7403e02a]

But I have not deleted "2012-03-07" folder.

Note : Indexing was working fine before deleting Index folders.

Cluster Configuration:

number_of_shards: 1
number_of_replicas: 1

How to get rid of this conflict.

Any help is much appreciated.....

Regards,
-Vibin