# A large number of pending tasks lock the elastic

**URL:** <https://discuss.elastic.co/t/a-large-number-of-pending-tasks-lock-the-elastic/212776>\
**Category:** Elasticsearch\
**Created:** [December 22, 2019, 12:02pm UTC](https://discuss.elastic.co/t/a-large-number-of-pending-tasks-lock-the-elastic/212776 "2019-12-22T12:02:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ludaca](https://avatars.discourse-cdn.com/v4/letter/l/ac8455/32.png) [@ludaca](https://discuss.elastic.co/u/ludaca)\
**Post date:** [December 22, 2019, 12:02pm UTC](https://discuss.elastic.co/t/a-large-number-of-pending-tasks-lock-the-elastic/212776/1 "2019-12-22T12:02:20Z")

</div>

Hello,  
Elasticsearch version 5.6.10  
Application - graylog  
Suddenly a large amount of pending tasks is created, preventing processing data to indices.  
All of type put-mapping , 300-400 tasks  
insertOrder timeInQueue priority source  
45061687 4.3s HIGH put-mapping

After several hours tasks disappear and application works properly.  
Please any suggestions, how to "release" ES when such amount of pending tasks is created?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![ludaca](https://avatars.discourse-cdn.com/v4/letter/l/ac8455/32.png) [@ludaca](https://discuss.elastic.co/u/ludaca)\
**Post date:** [December 31, 2019, 9:48am UTC](https://discuss.elastic.co/t/a-large-number-of-pending-tasks-lock-the-elastic/212776/2 "2019-12-31T09:48:46Z")

</div>

The issue resolved. It was the index.mapping.total\_fields.limit issue

---

<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:** [December 31, 2019, 9:57am UTC](https://discuss.elastic.co/t/a-large-number-of-pending-tasks-lock-the-elastic/212776/3 "2019-12-31T09:57:22Z")

</div>

This is the issue addressed by  
[#48867](https://github.com/elastic/elasticsearch/pull/48867) which will be released in 7.6.0.

---

<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:** [January 28, 2020, 10:00am UTC](https://discuss.elastic.co/t/a-large-number-of-pending-tasks-lock-the-elastic/212776/4 "2020-01-28T10:00:56Z")

</div>

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