# Data/write/bulk \[s\]\[r\] - Some task running from more than 70days

**URL:** <https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128>\
**Category:** Elasticsearch\
**Created:** [May 8, 2019, 8:33am UTC](https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128 "2019-05-08T08:33:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikash\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikash_kumar1/32/42775_2.png) [@Vikash\_Kumar1](https://discuss.elastic.co/u/Vikash_Kumar1)\
**Post date:** [May 8, 2019, 8:33am UTC](https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128/1 "2019-05-08T08:33:46Z")

</div>

Hi All,

I wanted to understand what is the below task that is executing from past 76 days. Is it expected to run for such a long time or is there any issue with my elasticsearch cluster.  
Also, we frequently face long GC pauses, was suspecting if this could be one of the reason for the issue.

[root@es-node-15 ~]# curl -XGET "localhost:9200/\_cat/tasks?v"  
action task\_id parent\_task\_id type start\_time timestamp running\_time ip node  
indices:data/write/bulk[s][r] -u1mvyirSXSO9pJKfwBODQ:154872000 IF-7DJwzTi2X0Sly5Pnk5g:253428804 netty 1550677531716 21:15:31 76.6d 10.0.47.162 es-warm-node-16

Can anyone please help me out?

Thanks,  
Vikash

---

<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:** [May 8, 2019, 9:01am UTC](https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128/2 "2019-05-08T09:01:51Z")

</div>

Which version are you using?

---

<div class="post-metadata">

**Author:** ![Vikash\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikash_kumar1/32/42775_2.png) [@Vikash\_Kumar1](https://discuss.elastic.co/u/Vikash_Kumar1)\
**Post date:** [May 8, 2019, 9:05am UTC](https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128/3 "2019-05-08T09:05:14Z")

</div>

Hi David,

We are using Elasticsearch version : "5.4.2" and "lucene\_version" : "6.5.1"

Thanks

---

<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:** [May 8, 2019, 9:08am UTC](https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128/4 "2019-05-08T09:08:53Z")

</div>

In which case I would suspect [#36770](https://github.com/elastic/elasticsearch/pull/36770), which fixes a race condition that can lead to these long-running tasks. The fix is in versions ≥6.5.5.

Each such task only takes a small amount of heap, and prevents the parent tasks from completing too. The parent tasks will be holding onto a whole bulk request, which is normally not that large (kilobytes rather than gigabytes). It does seem more likely to trigger this race condition when under load (heavy GC etc) but it's not normally the _cause_ of the GC pressure.

---

<div class="post-metadata">

**Author:** ![Vikash\_Kumar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikash_kumar1/32/42775_2.png) [@Vikash\_Kumar1](https://discuss.elastic.co/u/Vikash_Kumar1)\
**Post date:** [May 13, 2019, 8:54am UTC](https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128/5 "2019-05-13T08:54:02Z")

</div>

Hey David,

Thanks for the response. Also, may I know what could be the reason of the frequent and long GC pauses. As the long gc pauses, makes the elastic node inactive and which further makes my logstash machine think that there is dead es- instance.

We use Logstash as consumers from kafka cluster. Because of the long GC pauses, logstash stops taking any load and thus there is a lag in the kafka consumer.

Kafka-version : 0.10.1.1  
Logstash version: 5.2.2  
Elasticsearch version : 5.4.2

Can you please provide some insights on this?

Thanks,  
Vikash

---

<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:** [May 14, 2019, 1:17am UTC](https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128/6 "2019-05-14T01:17:49Z")

</div>

> [@Vikash\_Kumar1](#):
>
> may I know what could be the reason of the frequent and long GC pauses.

Normally this is because Elasticsearch is overloaded in some way, but I'm not the best person to answer about this.

---

<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:** [June 11, 2019, 1:17am UTC](https://discuss.elastic.co/t/data-write-bulk-s-r-some-task-running-from-more-than-70days/180128/7 "2019-06-11T01:17:53Z")

</div>

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