# Indexing stop if all shards are not available

**URL:** <https://discuss.elastic.co/t/indexing-stop-if-all-shards-are-not-available/12757>\
**Category:** Elasticsearch\
**Created:** [July 11, 2013, 2:18pm UTC](https://discuss.elastic.co/t/indexing-stop-if-all-shards-are-not-available/12757 "2013-07-11T14:18:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Ankit\_Jain](https://discuss.elastic.co/u/Ankit_Jain)\
**Post date:** [July 11, 2013, 2:18pm UTC](https://discuss.elastic.co/t/indexing-stop-if-all-shards-are-not-available/12757/1 "2013-07-11T14:18:03Z")

</div>

Hi All,

I am indexing continuous stream of records, I have cluster of 5 nodes and  
number of shards in one index is 4.

Node 0 --\> shard0 of index1  
Node 1 --\> shard1 of index2  
Node 2 --\> shard2 of index3  
Node 3 --\> shard3 of index4  
Node 4 --\> no of index5

If node4 goes down, then there is no impact on ingestion performance. but,  
if any node from Node0 to Node3 is down, then the ingestion will stop and  
throw following exception.

org.elasticsearch.action.NoShardAvailableActionException:  
[marchived\_ipdr\_205244][1] No shard available for  
[[marchived\_ipdr\_205244][marchived\_ipdr][c1b03b7e07033edc63cbd98c52a28bfa]:  
routing [null]]

By exception it is clear that, the shard[1] is not available.

Please help to resolve the issue.

Thanks,  
Ankit Jain

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ankit\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Ankit\_Jain](https://discuss.elastic.co/u/Ankit_Jain)\
**Post date:** [July 11, 2013, 4:21pm UTC](https://discuss.elastic.co/t/indexing-stop-if-all-shards-are-not-available/12757/2 "2013-07-11T16:21:50Z")

</div>

Please find the correct node details:

Node 0 --\> serve shard0 of index1  
Node 1 --\> serve shard1 of index1  
Node 2 --\> serve shard2 of index1  
Node 3 --\> serve shard3 of index1  
Node 4 --\> serve zero shard of index1

Thanks,  
Ankit

On Thursday, 11 July 2013 19:48:03 UTC+5:30, Ankit Jain wrote:

> Hi All,
> 
> I am indexing continuous stream of records, I have cluster of 5 nodes and  
> number of shards in one index is 4.
> 
> Node 0 --\> shard0 of index1  
> Node 1 --\> shard1 of index2  
> Node 2 --\> shard2 of index3  
> Node 3 --\> shard3 of index4  
> Node 4 --\> no of index5
> 
> If node4 goes down, then there is no impact on ingestion performance. but,  
> if any node from Node0 to Node3 is down, then the ingestion will stop and  
> throw following exception.
> 
> org.elasticsearch.action.NoShardAvailableActionException:  
> [marchived\_ipdr\_205244][1] No shard available for  
> [[marchived\_ipdr\_205244][marchived\_ipdr][c1b03b7e07033edc63cbd98c52a28bfa]:  
> routing [null]]
> 
> By exception it is clear that, the shard[1] is not available.
> 
> Please help to resolve the issue.
> 
> Thanks,  
> Ankit Jain

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:26am UTC](https://discuss.elastic.co/t/indexing-stop-if-all-shards-are-not-available/12757/3 "2017-07-06T02:26:57Z")

</div>


