# Elasticsearch thinks deleted repo snapshots are still available

**URL:** <https://discuss.elastic.co/t/elasticsearch-thinks-deleted-repo-snapshots-are-still-available/20429>\
**Category:** Elasticsearch\
**Created:** [October 25, 2014, 12:42am UTC](https://discuss.elastic.co/t/elasticsearch-thinks-deleted-repo-snapshots-are-still-available/20429 "2014-10-25T00:42:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![catwallader](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/catwallader/32/1043_2.png) [@catwallader](https://discuss.elastic.co/u/catwallader)\
**Post date:** [October 25, 2014, 12:42am UTC](https://discuss.elastic.co/t/elasticsearch-thinks-deleted-repo-snapshots-are-still-available/20429/1 "2014-10-25T00:42:22Z")

</div>

We collect Twitter data every hour in separate indices. During testing of  
the snapshot facility in Elasticsearch 1.3.2, I created a repo (called  
backup0) and a snapshot (called 2014-07-23) of a single index (called  
tweets-2014-07-23:16). Then I added a second index (called  
tweets-2014-07-23:17) to the snapshot. I verified that the snapshots were  
created in Elasticsearch and the snapshot files were created on the shared  
storage drive.

Then I deleted the snapshot, repo and the snapshot files. I repeated the  
same procedure to see if the repo, snapshot and snapshot files could be  
recreated. Elasticsearch created the repo and snapshot, but failed to add  
the files to the snapshot for indices tweets-2014-07-23:16 and tweets-2014-07-23:17.  
Checking the status in Elasticsearch verified this finding as the status  
message indicated that the request was a success but 0 shards were added to  
the snapshot and the "indices" directory was not created in the the shared  
storage drive.

Somehow Elasticsearch maintained the state of the repo and snapshot after  
it was deleted because it refused to add the two indices to the recreated  
snapshot. This seems to be a bug to me. Has anyone else encountered this  
problem?

-- vic

--  
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/7c968d80-ee75-4ebe-aca5-9632cfd11881%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7c968d80-ee75-4ebe-aca5-9632cfd11881%40googlegroups.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:53am UTC](https://discuss.elastic.co/t/elasticsearch-thinks-deleted-repo-snapshots-are-still-available/20429/2 "2017-07-06T00:53:55Z")

</div>


