# Bulk process stuck

**URL:** <https://discuss.elastic.co/t/bulk-process-stuck/179007>\
**Category:** Elasticsearch\
**Created:** [April 30, 2019, 3:14am UTC](https://discuss.elastic.co/t/bulk-process-stuck/179007 "2019-04-30T03:14:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![happy5035](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@happy5035](https://discuss.elastic.co/u/happy5035)\
**Post date:** [April 30, 2019, 3:14am UTC](https://discuss.elastic.co/t/bulk-process-stuck/179007/1 "2019-04-30T03:14:36Z")

</div>

when bulk document ,Bulk operation stuck in running state.

What may be the reason?

elasticsearch:6.4.2  
3 nodes

- 

```
  indices:data/write/bulk CpJ4Sde5TXqvPG_UKFSRZQ:233020 - transport 1556587908016 01:31:48 1.6h 172.16.217.20 CpJ4Sde

```

- 

```
indices:data/write/bulk[s] CpJ4Sde5TXqvPG_UKFSRZQ:233021 CpJ4Sde5TXqvPG_UKFSRZQ:233020 transport 1556587908020 01:31:48 1.6h 172.16.217.20 CpJ4Sde

```

- 

```
indices:data/write/bulk[s] _5PM_TvgSvmoxZFFl3D1Lw:215192 CpJ4Sde5TXqvPG_UKFSRZQ:233021 netty 1556587933113 01:32:13 1.6h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk[s][p] _5PM_TvgSvmoxZFFl3D1Lw:215193 _5PM_TvgSvmoxZFFl3D1Lw:215192 direct 1556587933113 01:32:13 1.6h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk CpJ4Sde5TXqvPG_UKFSRZQ:233152 - transport 1556587971902 01:32:51 1.6h 172.16.217.20 CpJ4Sde

```

- 

```
indices:data/write/bulk[s] CpJ4Sde5TXqvPG_UKFSRZQ:233153 CpJ4Sde5TXqvPG_UKFSRZQ:233152 transport 1556587971910 01:32:51 1.6h 172.16.217.20 CpJ4Sde

```

- 

```
indices:data/write/bulk[s] _5PM_TvgSvmoxZFFl3D1Lw:215316 CpJ4Sde5TXqvPG_UKFSRZQ:233153 netty 1556587991923 01:33:11 1.5h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk[s][p] _5PM_TvgSvmoxZFFl3D1Lw:215317 _5PM_TvgSvmoxZFFl3D1Lw:215316 direct 1556587991924 01:33:11 1.5h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk _5PM_TvgSvmoxZFFl3D1Lw:215366 - transport 1556588010842 01:33:30 1.5h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk[s] _5PM_TvgSvmoxZFFl3D1Lw:215367 _5PM_TvgSvmoxZFFl3D1Lw:215366 transport 1556588010848 01:33:30 1.5h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk[s][p] _5PM_TvgSvmoxZFFl3D1Lw:215369 _5PM_TvgSvmoxZFFl3D1Lw:215367 direct 1556588010848 01:33:30 1.5h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk _5PM_TvgSvmoxZFFl3D1Lw:215432 - transport 1556588037252 01:33:57 1.5h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk[s] _5PM_TvgSvmoxZFFl3D1Lw:215434 _5PM_TvgSvmoxZFFl3D1Lw:215432 transport 1556588037254 01:33:57 1.5h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk _5PM_TvgSvmoxZFFl3D1Lw:215499 - transport 1556588067444 01:34:27 1.5h 172.16.215.15 _5PM_Tv

```

- 

```
indices:data/write/bulk[s] _5PM_TvgSvmoxZFFl3D1Lw:215500 _5PM_TvgSvmoxZFFl3D1Lw:215499 transport 1556588067448 01:34:27 1.5h 172.16.215.15 _5PM_Tv

```

**details info**

```
"i6Idpt6oSb-_T8GhBp5DFg:222210" : {
  "node" : "i6Idpt6oSb-_T8GhBp5DFg",
  "id" : 222210,
  "type" : "transport",
  "action" : "indices:data/write/bulk",
  "description" : "requests[2076], indices[logs-39ae8b6acd104b1e823332cd6f64d415-2019-04-30, logs-78e238e645b84b50ada2b3ea45e232a7-2019-04-30]",
  "start_time" : "2019-04-30T02:05:01.364Z",
  "start_time_in_millis" : 1556589901364,
  "running_time" : "1h",
  "running_time_in_nanos" : 3888982728848,
  "cancellable" : false,
  "headers" : { },
  "children" : [
    {
      "node" : "i6Idpt6oSb-_T8GhBp5DFg",
      "id" : 222211,
      "type" : "transport",
     "action" : "indices:data/write/bulk[s]",
      "status" : {
        "phase" : "rerouted"
      },
      "description" : "requests[2009], index[logs-78e238e645b84b50ada2b3ea45e232a7-2019-04-30]",
      "start_time" : "2019-04-30T02:05:01.366Z",
      "start_time_in_millis" : 1556589901366,
      "running_time" : "1h",
      "running_time_in_nanos" : 3888980969875,
      "cancellable" : false,
      "parent_task_id" : "i6Idpt6oSb-_T8GhBp5DFg:222210",
      "headers" : { },
      "children" : [
        {
          "node" : "_5PM_TvgSvmoxZFFl3D1Lw",
          "id" : 219793,
          "type" : "netty",
          "action" : "indices:data/write/bulk[s]",
          "status" : {
            "phase" : "waiting_on_primary"
          },
          "description" : "requests[2009], index[logs-78e238e645b84b50ada2b3ea45e232a7-2019-04-30]",
          "start_time" : "2019-04-30T02:06:15.118Z",
          "start_time_in_millis" : 1556589975118,
          "running_time" : "1h",
          "running_time_in_nanos" : 3815228269643,
          "cancellable" : false,
          "parent_task_id" : "i6Idpt6oSb-_T8GhBp5DFg:222211",
          "headers" : { },
          "children" : [
            {
              "node" : "_5PM_TvgSvmoxZFFl3D1Lw",
              "id" : 219794,
              "type" : "direct",
              "action" : "indices:data/write/bulk[s][p]",
              "status" : {
                "phase" : "primary"
              },
              "description" : "requests[2009], index[logs-78e238e645b84b50ada2b3ea45e232a7-2019-04-30]",
              "start_time" : "2019-04-30T02:06:15.119Z",
              "start_time_in_millis" : 1556589975119,
              "running_time" : "1h",
              "running_time_in_nanos" : 3815227909921,
              "cancellable" : false,
              "parent_task_id" : "_5PM_TvgSvmoxZFFl3D1Lw:219793",
              "headers" : { }
            }
          ]
        }
      ]
    }
  ]
},
```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 30, 2019, 5:14am UTC](https://discuss.elastic.co/t/bulk-process-stuck/179007/2 "2019-04-30T05:14:14Z")

</div>

How large is your bulk request?

---

<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 28, 2019, 5:14am UTC](https://discuss.elastic.co/t/bulk-process-stuck/179007/3 "2019-05-28T05:14:21Z")

</div>

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