# Wait\_for\_active\_shards parameter

**URL:** <https://discuss.elastic.co/t/wait-for-active-shards-parameter/127281>\
**Category:** Elasticsearch\
**Created:** [April 9, 2018, 8:54am UTC](https://discuss.elastic.co/t/wait-for-active-shards-parameter/127281 "2018-04-09T08:54:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_GR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roman_gr/32/26608_2.png) [@Roman\_GR](https://discuss.elastic.co/u/Roman_GR)\
**Post date:** [April 9, 2018, 8:54am UTC](https://discuss.elastic.co/t/wait-for-active-shards-parameter/127281/1 "2018-04-09T08:54:07Z")

</div>

Documentation says this param should have only positive integer values, but request doesn't fail when I send 0 as a value. Does it mean that it will not wait even for primary shard or the param will be ignored?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 9, 2018, 2:45pm UTC](https://discuss.elastic.co/t/wait-for-active-shards-parameter/127281/2 "2018-04-09T14:45:32Z")

</div>

Hey,

setting this to `0` means no waiting.

--Alex

---

<div class="post-metadata">

**Author:** ![Roman\_GR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roman_gr/32/26608_2.png) [@Roman\_GR](https://discuss.elastic.co/u/Roman_GR)\
**Post date:** [April 9, 2018, 6:36pm UTC](https://discuss.elastic.co/t/wait-for-active-shards-parameter/127281/3 "2018-04-09T18:36:43Z")

</div>

Thank you, Alex

---

<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:** [May 7, 2018, 6:36pm UTC](https://discuss.elastic.co/t/wait-for-active-shards-parameter/127281/4 "2018-05-07T18:36:54Z")

</div>

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