Page 1 of 1

snapshots not deleted since the multiple snapshot bug

Posted: Tue Jul 03, 2018 4:51 am
by CBoekhuis
Hello,

Since we have had the multiple snapshot bug, the old snapshots aren't deleted. They should be deleted after 7 days. There's no error in the elastics search log file.

Using the delete button in de admin GUI, will take a very long time due to the large amount of snapshots. So I decided to run the curator command from the prompt

Code: Select all

> curator show snapshots --repository backup --older-than 16 --time-unit days                 
2018-07-03 11:10:41,166 INFO      Job starting: show snapshots
2018-07-03 11:10:41,413 INFO      Matching snapshots:
curator-20180617122557
curator-20180617122656
curator-20180617122722
curator-20180617122817
curator-20180617122840
curator-20180617122933
curator-20180617123049
curator-20180617123102
curator-20180617123145
curator-20180617123202
curator-20180617123246
curator-20180617123300
curator-20180617123337
curator-20180617123352
curator-20180617123423
curator-20180617123440
curator-20180617123509
curator-20180617123523
curator-20180617123552
curator-20180617123559
curator-20180617123620
curator-20180617123649
curator-20180617123715
curator-20180617123750
curator-20180617123803
curator-20180617123832
curator-20180617123854
curator-20180617123907
I decided to delete the snapshots in chuncks of 1 day until I'm back at 7 days, also using a long timeout value, because the default 30 seconds won't cut it. ;) . Maybe this is also the reason why the aren't deleted by the maintenance schedule

Code: Select all

> curator --timeout 1200 delete snapshots --repository backup --older-than 16 --time-unit days 
2018-07-03 11:14:21,655 INFO      Job starting: delete snapshots
2018-07-03 11:14:21,887 INFO      Deleting snapshot curator-20180617122557
2018-07-03 11:18:50,169 INFO      Deleting snapshot curator-20180617122656
2018-07-03 11:23:18,248 INFO      Deleting snapshot curator-20180617122722
2018-07-03 11:27:47,242 INFO      Deleting snapshot curator-20180617122817
2018-07-03 11:32:15,034 INFO      Deleting snapshot curator-20180617122840
2018-07-03 11:36:44,120 INFO      Deleting snapshot curator-20180617122933
2018-07-03 11:41:11,201 INFO      Deleting snapshot curator-20180617123049
..........
The reason I'm reporting this is because I noticed that some other people were affected by the multiple snapshot bug as well, so they might also run into this problem.

Greetings...Hans

Re: snapshots not deleted since the multiple snapshot bug

Posted: Tue Jul 03, 2018 10:02 am
by scottwilkerson
Thanks for sharing!

Re: snapshots not deleted since the multiple snapshot bug

Posted: Tue Jul 03, 2018 10:06 am
by CBoekhuis
No problem! :D

Re: snapshots not deleted since the multiple snapshot bug

Posted: Tue Jul 03, 2018 10:19 am
by scottwilkerson
Locking thread