# Is there a commit mechanism in actionfile?

**URL:** <https://discuss.elastic.co/t/is-there-a-commit-mechanism-in-actionfile/68834>\
**Category:** Elasticsearch\
**Created:** [December 13, 2016, 9:06am UTC](https://discuss.elastic.co/t/is-there-a-commit-mechanism-in-actionfile/68834 "2016-12-13T09:06:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srinivas\_Mangipudi](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Srinivas\_Mangipudi](https://discuss.elastic.co/u/Srinivas_Mangipudi)\
**Post date:** [December 13, 2016, 9:06am UTC](https://discuss.elastic.co/t/is-there-a-commit-mechanism-in-actionfile/68834/1 "2016-12-13T09:06:12Z")

</div>

I have an action file with 3 actions:

- create this weeks index
- attach this newly created index to the existing alias, and remove older attachments
- delete old indices.

the problem I am facing is that the the attach alias step does not find the newly created index when run sequentially. But when I run them in separate files everything works well.

So I am wondering if there is a commit transaction type of issue here? And plus is this the correct way to write the actions, or they are better written in separate files.

---

<div class="post-metadata">

**Author:** ![Srinivas\_Mangipudi](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@Srinivas\_Mangipudi](https://discuss.elastic.co/u/Srinivas_Mangipudi)\
**Post date:** [December 13, 2016, 11:03am UTC](https://discuss.elastic.co/t/is-there-a-commit-mechanism-in-actionfile/68834/2 "2016-12-13T11:03:40Z")

</div>

This was actually a problem with the filtering mechanism, which was not catching the index. Its solved by removing all the indices attached to the alias first and then attaching the correct index.

---

<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 10, 2017, 11:04am UTC](https://discuss.elastic.co/t/is-there-a-commit-mechanism-in-actionfile/68834/3 "2017-01-10T11:04:23Z")

</div>

Closed on January 10, 2017, 11:04am UTC

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