# Local gateway recovery

**URL:** <https://discuss.elastic.co/t/local-gateway-recovery/20275>\
**Category:** Elasticsearch\
**Created:** [October 16, 2014, 5:36am UTC](https://discuss.elastic.co/t/local-gateway-recovery/20275 "2014-10-16T05:36:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish\_Mishra](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@Ashish\_Mishra](https://discuss.elastic.co/u/Ashish_Mishra)\
**Post date:** [October 16, 2014, 5:36am UTC](https://discuss.elastic.co/t/local-gateway-recovery/20275/1 "2014-10-16T05:36:51Z")

</div>

From [http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway-local.html#\_dangling\_indices](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-gateway-local.html#_dangling_indices)

When a node joins the cluster, any shards/indices stored in its local data/  
directory which do not already exist in the cluster will be imported into  
the cluster by default.

Does this also include unassigned shards?  
Suppose shard allocation is disabled, and a node gets partitioned from the  
cluster (so its shards become unassigned). When it rejoins the cluster,  
will it pick up those shards again, or will they remain unassigned.

Does this behavior change for primary vs. replica shards?

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2b669b59-974f-4f6c-a08a-f246c9bb7603%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2b669b59-974f-4f6c-a08a-f246c9bb7603%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:55am UTC](https://discuss.elastic.co/t/local-gateway-recovery/20275/2 "2017-07-06T00:55:52Z")

</div>


