# Snapshot delete is executed but API call never returns

**URL:** <https://discuss.elastic.co/t/snapshot-delete-is-executed-but-api-call-never-returns/21787>\
**Category:** Elasticsearch\
**Created:** [January 22, 2015, 9:23pm UTC](https://discuss.elastic.co/t/snapshot-delete-is-executed-but-api-call-never-returns/21787 "2015-01-22T21:23:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickcanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickcanz/32/44873_2.png) [@nickcanz](https://discuss.elastic.co/u/nickcanz)\
**Post date:** [January 22, 2015, 9:23pm UTC](https://discuss.elastic.co/t/snapshot-delete-is-executed-but-api-call-never-returns/21787/1 "2015-01-22T21:23:59Z")

</div>

Elasticsearch version 1.4.2  
The repository is of type "fs" and points to a NFS directory.  
Taking snapshots succeed just fine.

When deleting a snapshot however, I can wait several minutes with no  
response. Pretty much immediately though if I GET the snapshot I get a 404  
in response (expected). Also, in the repository directory itself the  
folders related to the snapshot are deleted.

The same behavior occurs if I shoot the request at a client node, the  
master or a data node.

Let me know what more info I should provide.

Thanks,

--  
Nick Canzoneri  
Developer, Wildbit [http://wildbit.com/](http://wildbit.com/)  
Beanstalk [http://beanstalkapp.com/](http://beanstalkapp.com/), Postmark [http://postmarkapp.com/](http://postmarkapp.com/),  
dploy.io

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKWm5yPCethXRQGXYQXKjR08i5zOoXwXY%3DoxvWf%2BUhEkW6UTCg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKWm5yPCethXRQGXYQXKjR08i5zOoXwXY%3DoxvWf%2BUhEkW6UTCg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nickcanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickcanz/32/44873_2.png) [@nickcanz](https://discuss.elastic.co/u/nickcanz)\
**Post date:** [January 23, 2015, 6:27pm UTC](https://discuss.elastic.co/t/snapshot-delete-is-executed-but-api-call-never-returns/21787/2 "2015-01-23T18:27:11Z")

</div>

It looks like it is this issue:

> <https://github.com/elastic/elasticsearch/issues/8958>
>
> In order to create a new snapshot or delete an existing snapshot, elasticsearch …has to load all existing shard level snapshots to figure out which files need to be copied and which files can be cleaned. The number of files to be checked is equal to \`number\_of\_shards \* number\_of\_snapshots\`, which on a large clusters and frequent snapshots can lead to very long operation times especially with non-filesystem repositories. See https://github.com/elasticsearch/elasticsearch-cloud-aws/issues/150 and \[this group post\](https://groups.google.com/d/msg/elasticsearch/cXl9UrqgwBI/gEX0gSj2yqgJ) for examples of issues that this behavior is causing.

On Thu, Jan 22, 2015 at 4:23 PM, Nick Canzoneri [nick@wildbit.com](mailto:nick@wildbit.com) wrote:

> Elasticsearch version 1.4.2  
> The repository is of type "fs" and points to a NFS directory.  
> Taking snapshots succeed just fine.
> 
> When deleting a snapshot however, I can wait several minutes with no  
> response. Pretty much immediately though if I GET the snapshot I get a 404  
> in response (expected). Also, in the repository directory itself the  
> folders related to the snapshot are deleted.
> 
> The same behavior occurs if I shoot the request at a client node, the  
> master or a data node.
> 
> Let me know what more info I should provide.
> 
> Thanks,
> 
> --  
> Nick Canzoneri  
> Developer, Wildbit [http://wildbit.com/](http://wildbit.com/)  
> Beanstalk [http://beanstalkapp.com/](http://beanstalkapp.com/), Postmark [http://postmarkapp.com/](http://postmarkapp.com/),  
> [dploy.io](http://dploy.io)

--  
Nick Canzoneri  
Developer, Wildbit [http://wildbit.com/](http://wildbit.com/)  
Beanstalk [http://beanstalkapp.com/](http://beanstalkapp.com/), Postmark [http://postmarkapp.com/](http://postmarkapp.com/),

> **[DeployBot | Code Deployment Tools | Deploy Code Anywhere](https://deploybot.com)**
>
> Push. Build. Deploy! Instantly build and ship code anywhere in one consistent process for your entire team. DeployBot's code deployment tools work with your existing git repository to deploy new code fast, and with zero downtime. These are the...

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKWm5yOOYk9San7%3Da-HZurepwwFQUZRHPgJztANYPBx4QfcWww%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKWm5yOOYk9San7%3Da-HZurepwwFQUZRHPgJztANYPBx4QfcWww%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:36am UTC](https://discuss.elastic.co/t/snapshot-delete-is-executed-but-api-call-never-returns/21787/3 "2017-07-06T00:36:59Z")

</div>


