# When the master node publishes the cluster state, if a certain slave node fails to respond consistently and no timeout is set, does it mean that it will keep waiting and cannot complete?

**URL:** <https://discuss.elastic.co/t/when-the-master-node-publishes-the-cluster-state-if-a-certain-slave-node-fails-to-respond-consistently-and-no-timeout-is-set-does-it-mean-that-it-will-keep-waiting-and-cannot-complete/337595>\
**Category:** Elasticsearch\
**Created:** [July 5, 2023, 2:18am UTC](https://discuss.elastic.co/t/when-the-master-node-publishes-the-cluster-state-if-a-certain-slave-node-fails-to-respond-consistently-and-no-timeout-is-set-does-it-mean-that-it-will-keep-waiting-and-cannot-complete/337595 "2023-07-05T02:18:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cm\_z](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cm_z/32/119671_2.png) [@cm\_z](https://discuss.elastic.co/u/cm_z)\
**Post date:** [July 5, 2023, 2:18am UTC](https://discuss.elastic.co/t/when-the-master-node-publishes-the-cluster-state-if-a-certain-slave-node-fails-to-respond-consistently-and-no-timeout-is-set-does-it-mean-that-it-will-keep-waiting-and-cannot-complete/337595/1 "2023-07-05T02:18:44Z")

</div>

I found that when the master node publishes the cluster state, in the second phase, it will wait for all slave nodes to respond (successfully or unsuccessfully) before proceeding with the subsequent process. If a request is made to a slave node without setting a timeout and the slave node is in a high latency state, does this mean that the master node will keep waiting indefinitely？@DavidTurner

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [July 5, 2023, 8:13am UTC](https://discuss.elastic.co/t/when-the-master-node-publishes-the-cluster-state-if-a-certain-slave-node-fails-to-respond-consistently-and-no-timeout-is-set-does-it-mean-that-it-will-keep-waiting-and-cannot-complete/337595/2 "2023-07-05T08:13:58Z")

</div>

> does this mean that the master node will keep waiting indefinitely?

No, see e.g. `o.e.c.c.CoordinatorTests#testUnresponsiveFollowerDetectedEventually` and `o.e.c.c.CoordinatorTests#testAckListenerReceivesNoAckFromHangingFollower`.

It's rather rude to `@mention` folks who haven't already shown interest in a topic. Normally if pinged like this I will just mute the topic without answering. I am making an exception in this one case, but please don't do it again.

Also Elasticsearch has no concept of a "slave node". This terminology is considered offensive.

---

<div class="post-metadata">

**Author:** ![cm\_z](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cm_z/32/119671_2.png) [@cm\_z](https://discuss.elastic.co/u/cm_z)\
**Post date:** [July 5, 2023, 9:47am UTC](https://discuss.elastic.co/t/when-the-master-node-publishes-the-cluster-state-if-a-certain-slave-node-fails-to-respond-consistently-and-no-timeout-is-set-does-it-mean-that-it-will-keep-waiting-and-cannot-complete/337595/4 "2023-07-05T09:47:35Z")

</div>

Okay, I will avoid this situation in the future，so sorry.

---

<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:** [August 2, 2023, 9:47am UTC](https://discuss.elastic.co/t/when-the-master-node-publishes-the-cluster-state-if-a-certain-slave-node-fails-to-respond-consistently-and-no-timeout-is-set-does-it-mean-that-it-will-keep-waiting-and-cannot-complete/337595/5 "2023-08-02T09:47:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
