# Retry reindexing starting from a certain point

**URL:** <https://discuss.elastic.co/t/retry-reindexing-starting-from-a-certain-point/195160>\
**Category:** Elasticsearch\
**Created:** [August 14, 2019, 8:09am UTC](https://discuss.elastic.co/t/retry-reindexing-starting-from-a-certain-point/195160 "2019-08-14T08:09:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico127](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@nico127](https://discuss.elastic.co/u/nico127)\
**Post date:** [August 14, 2019, 8:09am UTC](https://discuss.elastic.co/t/retry-reindexing-starting-from-a-certain-point/195160/1 "2019-08-14T08:09:09Z")

</div>

Hello. It sometimes happen that reindexing fails, for one reason or another (mostly elastic thread pool's task queue full). I'm working on improving performance in some ways, to run into the issue less often; but I don't think I will ever be able to safely assume that it works every time. So I would like to be able to restart _from where it failed_ when there is an issue. Is that possible?

More in detail, the failure message looks something like:

```json
{
  "took": 292958,
  "timed_out": false,
  "total": 13920455,
  "updated": 0,
  "created": 1147000,
  "deleted": 0,
  "batches": 1147,
  "version_conflicts": 0,
  "noops": 0,
  "retries": {
    "bulk": 0,
    "search": 0
  },
  "throttled_millis": 0,
  "requests_per_second": -1,
  "throttled_until_millis": 0,
  "failures": [
    {
      "shard": -1,
      "reason": {
        "type": "es_rejected_execution_exception",
        "reason": "rejected execution of org.elasticsearch.transport.TransportService$7@680ae7d on EsThreadPoolExecutor[search, queue capacity = 1000, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@3bd943c0[Running, pool size = 19, active threads = 19, queued tasks = 391, completed tasks = 2297158742]]"
      }
    }
  ]
} 

```

Those lines:

```json
  "total": 13920455,
  "updated": 0,
  "created": 1147000,
  "deleted": 0,
  "batches": 1147,

```

tell me where it stopped. Is it possible to restart the process and specify something like "start at batch 1148"?

---

<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:** [September 11, 2019, 8:09am UTC](https://discuss.elastic.co/t/retry-reindexing-starting-from-a-certain-point/195160/2 "2019-09-11T08:09:19Z")

</div>

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