# Computation of total in Reindex API status response

**URL:** <https://discuss.elastic.co/t/computation-of-total-in-reindex-api-status-response/325658>\
**Category:** Elasticsearch\
**Created:** [February 15, 2023, 8:23pm UTC](https://discuss.elastic.co/t/computation-of-total-in-reindex-api-status-response/325658 "2023-02-15T20:23:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fifthist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fifthist/32/111213_2.png) [@fifthist](https://discuss.elastic.co/u/fifthist)\
**Post date:** [February 15, 2023, 8:23pm UTC](https://discuss.elastic.co/t/computation-of-total-in-reindex-api-status-response/325658/1 "2023-02-15T20:23:53Z")

</div>

I call Reindex API by creating a Task (`wait_for_completion=false`). I then use `_tasks` API to get the details of the task once it is completed. Part of the task response is the response of the Reindex API with `created`, `updated`, `deleted`, `version_conflicts`, `total` counts. Note that my client uses `conflicts: proceed` to not abort on version conflicts. I have the following two questions.

1. Is `updated` + `deleted` + `created` + `version_conflicts` supposed to equal `total` if everything succeeded, or do version\_conflicts not get counted towards the computation of `total`, even when `conflcits:proceed` is set?

2. With `conflcits:proceed` set, are version conflicts expected to be in the `failures` list of the Reindex response?

---

<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:** [March 15, 2023, 8:24pm UTC](https://discuss.elastic.co/t/computation-of-total-in-reindex-api-status-response/325658/2 "2023-03-15T20:24:43Z")

</div>

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