# Shards flapping

**URL:** <https://discuss.elastic.co/t/shards-flapping/21709>\
**Category:** Elasticsearch\
**Created:** [January 19, 2015, 11:06am UTC](https://discuss.elastic.co/t/shards-flapping/21709 "2015-01-19T11:06:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daaku\_gee](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@daaku\_gee](https://discuss.elastic.co/u/daaku_gee)\
**Post date:** [January 19, 2015, 11:06am UTC](https://discuss.elastic.co/t/shards-flapping/21709/1 "2015-01-19T11:06:08Z")

</div>

I am running 3 node Elasticsearch-1.3 cluster. One of the primary shards  
for an index that has no more documents being indexed to it, keeps bouncing  
from node to node. No its not relocating.

Allocating the shard to any one node doesn't work.

What can I do to stabilize it?

Thanks

--  
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/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX\_20g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX_20g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 19, 2015, 11:56am UTC](https://discuss.elastic.co/t/shards-flapping/21709/2 "2015-01-19T11:56:30Z")

</div>

Bouncing? Does it allocate or just sit in a allocating state?

On 20 January 2015 at 00:06, daaku gee [daaqou@gmail.com](mailto:daaqou@gmail.com) wrote:

> I am running 3 node Elasticsearch-1.3 cluster. One of the primary shards  
> for an index that has no more documents being indexed to it, keeps bouncing  
> from node to node. No its not relocating.
> 
> Allocating the shard to any one node doesn't work.
> 
> What can I do to stabilize it?
> 
> Thanks
> 
> --  
> 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/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX\_20g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX_20g%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX\_20g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX_20g%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEYi1X\_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![daaku\_gee](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@daaku\_gee](https://discuss.elastic.co/u/daaku_gee)\
**Post date:** [January 19, 2015, 3:21pm UTC](https://discuss.elastic.co/t/shards-flapping/21709/3 "2015-01-19T15:21:30Z")

</div>

By bouncing I mean the shard sits on one node for a little less than a  
minute then moves over to a second node, then back to the first node after  
a few seconds. It stays in INITIALIZING state.

On Mon, Jan 19, 2015 at 5:26 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> Bouncing? Does it allocate or just sit in a allocating state?
> 
> On 20 January 2015 at 00:06, daaku gee [daaqou@gmail.com](mailto:daaqou@gmail.com) wrote:
> 
> > I am running 3 node Elasticsearch-1.3 cluster. One of the primary shards  
> > for an index that has no more documents being indexed to it, keeps bouncing  
> > from node to node. No its not relocating.
> > 
> > Allocating the shard to any one node doesn't work.
> > 
> > What can I do to stabilize it?
> > 
> > Thanks
> > 
> > --  
> > 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/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX\_20g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX_20g%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX\_20g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX_20g%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAEYi1X\_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X\_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAH53p94mMXv5jMcE\_wKuVfKzrkkX6LsFG%2BAyXaK41R3T%2Bry6Gw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p94mMXv5jMcE_wKuVfKzrkkX6LsFG%2BAyXaK41R3T%2Bry6Gw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![singh\_janmejay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/singh_janmejay/32/988_2.png) [@singh\_janmejay](https://discuss.elastic.co/u/singh_janmejay)\
**Post date:** [January 19, 2015, 3:43pm UTC](https://discuss.elastic.co/t/shards-flapping/21709/4 "2015-01-19T15:43:59Z")

</div>

I have had such a problem with a few shards. The allocation fails with the  
following message:

RecoveryFailedException: Recovery failed from X into Y; nested:  
RemoteTransportException Y; nested: RecoveryEngineException ... Phase[2]  
Execution failed; nested: RemoteTransportException  
...[index/shard/recovery/translogOps]]; nested:  
MapperParsingException[failed to parse [...]]; nested:  
ElasticsearchIllegalArgumentException[unknown property [foo]]; ]]

In this case it seems dynamic-mapping for property foo wasn't propagated to  
all shards, now a few shards that somehow don't know the mapping for foo  
are not able to initialize on any node.

I need to find out why the mapping for field foo is unknown though.

Doesn't log tell you why its not able to initialize the shard?

On Mon, Jan 19, 2015 at 8:51 PM, daaku gee [daaqou@gmail.com](mailto:daaqou@gmail.com) wrote:

> By bouncing I mean the shard sits on one node for a little less than a  
> minute then moves over to a second node, then back to the first node after  
> a few seconds. It stays in INITIALIZING state.
> 
> On Mon, Jan 19, 2015 at 5:26 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:
> 
> > Bouncing? Does it allocate or just sit in a allocating state?
> > 
> > On 20 January 2015 at 00:06, daaku gee [daaqou@gmail.com](mailto:daaqou@gmail.com) wrote:
> > 
> > > I am running 3 node Elasticsearch-1.3 cluster. One of the primary  
> > > shards for an index that has no more documents being indexed to it, keeps  
> > > bouncing from node to node. No its not relocating.
> > > 
> > > Allocating the shard to any one node doesn't work.
> > > 
> > > What can I do to stabilize it?
> > > 
> > > Thanks
> > > 
> > > --  
> > > 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/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX\_20g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX_20g%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX\_20g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAH53p94GkK2iw3m4-4UKTv8JPORD6k%2B7DZ1jLYrfgT7LqX_20g%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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/CAEYi1X\_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X\_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_ntBtgGMfM2YFx7wgUSdydjTW-s4XD5wxv-9af%3DkAA2g%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAH53p94mMXv5jMcE\_wKuVfKzrkkX6LsFG%2BAyXaK41R3T%2Bry6Gw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAH53p94mMXv5jMcE_wKuVfKzrkkX6LsFG%2BAyXaK41R3T%2Bry6Gw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAH53p94mMXv5jMcE\_wKuVfKzrkkX6LsFG%2BAyXaK41R3T%2Bry6Gw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAH53p94mMXv5jMcE_wKuVfKzrkkX6LsFG%2BAyXaK41R3T%2Bry6Gw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Regards,  
Janmejay

> **[codehunk](https://codehunk.wordpress.com)**
>
> the way i see it.......

--  
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/CAGB1VvwCjggJCwXuUo9R48ffuaMrxr297iRUMpm6Fm1eqHDSow%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGB1VvwCjggJCwXuUo9R48ffuaMrxr297iRUMpm6Fm1eqHDSow%40mail.gmail.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:37am UTC](https://discuss.elastic.co/t/shards-flapping/21709/5 "2017-07-06T00:37:58Z")

</div>


