# Snapshot on fast changing clusters

**URL:** https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468
**Category:** Elasticsearch
**Tags:** snapshot-and-restore
**Created:** [June 20, 2021, 8:15pm UTC](https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468 "2021-06-20T20:15:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![nadler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nadler/32/97461_2.png) [@nadler](https://discuss.elastic.co/u/nadler)
#### Post date: [June 20, 2021, 8:15pm UTC](https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468/1 "2021-06-20T20:15:39Z")

</div>

Hey,  
So, in the last two weeks i have encountered a problem with one of our clusters.  
I have a daily backup procedure running on it and often, while the snapshot procedure is running, we get the following exception:  
Indexing cycle failed ElasticsearchStatusException[Elasticsearch exception [type=illegal\_argument\_exception, reason=Cannot delete indices that are being snapshotted.  
This is a rapidly changing cluster, as we override the index often.  
Is there a way to automatically enable index deletion and cancelation of the snapshot? Some flag to tell the snapshot to give priority to the index deletion? Or any other way of avoiding the clash of the snapshot and index override?

---

<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: [July 3, 2021, 6:16pm UTC](https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468/2 "2021-07-03T18:16:41Z")

</div>

I recall snapshot behaviour having changed lately so it would be useful to know which version of Elasticsearch you are using. I do not know the changes made in detail though so will leave that for someone else.

How do you take snapshots? Are you using the [ignore\_unavailable](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/create-snapshot-api.html#create-snapshot-api-request-body) parameter?

---

<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: [July 4, 2021, 8:08pm UTC](https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468/3 "2021-07-04T20:08:12Z")

</div>

I think the parameter @nadler wants is `partial`, which all non-[EOL](https://www.elastic.co/support/eol) versions support. With that parameter, Elasticsearch will let you delete indices while they're being snapshotted, because that flag means that missing shards don't fail the whole snapshot.

---

<div class="post-metadata">

### Author: ![nadler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nadler/32/97461_2.png) [@nadler](https://discuss.elastic.co/u/nadler)
#### Post date: [July 4, 2021, 9:04pm UTC](https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468/4 "2021-07-04T21:04:47Z")

</div>

The ES version is 6.3.2.  
I am taking the snapshots via API with the ignore\_unavailable set to true.

---

<div class="post-metadata">

### Author: ![nadler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nadler/32/97461_2.png) [@nadler](https://discuss.elastic.co/u/nadler)
#### Post date: [July 4, 2021, 9:06pm UTC](https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468/5 "2021-07-04T21:06:17Z")

</div>

That does sound like the flag i was looking for!  
Thanks David, I will try it out.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 5, 2021, 2:01am UTC](https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468/6 "2021-07-05T02:01:15Z")

</div>

6.3 is [EOL](https://www.elastic.co/support/eol), please upgrade 🙂

---

<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: [August 2, 2021, 2:02am UTC](https://discuss.elastic.co/t/snapshot-on-fast-changing-clusters/276468/7 "2021-08-02T02:02:06Z")

</div>

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