# Retry\_on\_conflict, random wait?

**URL:** <https://discuss.elastic.co/t/retry-on-conflict-random-wait/27249>\
**Category:** Elasticsearch\
**Created:** [August 12, 2015, 11:30am UTC](https://discuss.elastic.co/t/retry-on-conflict-random-wait/27249 "2015-08-12T11:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lasseschou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lasseschou/32/845_2.png) [@lasseschou](https://discuss.elastic.co/u/lasseschou)\
**Post date:** [August 12, 2015, 11:30am UTC](https://discuss.elastic.co/t/retry-on-conflict-random-wait/27249/1 "2015-08-12T11:30:48Z")

</div>

Hi,

If two processes try updating the same document concurrently, and they both have retry\_on\_conflict set to the same number (ex: 5), is there a built-in random wait, or do they just keep racing until the number of retries has run out?

Lasse

---

<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 5, 2017, 11:56pm UTC](https://discuss.elastic.co/t/retry-on-conflict-random-wait/27249/2 "2017-07-05T23:56:14Z")

</div>


