Successfully deleted snapshots – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.8-7.8

Briefly, this error occurs when you attempt to delete snapshots in Elasticsearch and the operation is successful. It’s not an error but a confirmation message indicating that the snapshots have been successfully deleted. If this was not intended, you should consider implementing safeguards to prevent accidental deletion. This could include user permissions, confirmation prompts, or automated backups. If you need to recover the deleted snapshots, you will have to restore them from a backup if one exists.

This guide will help you check for common problems that cause the log ” Successfully deleted snapshots {} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: .

Log Context

Log “Successfully deleted snapshots {}” classname is SnapshotsService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

            public void clusterStateProcessed(String source; ClusterState oldState; ClusterState newState) {
                if (listener != null) {
                    if (failure != null) {
                        listener.onFailure(failure);
                    } else {
                        logger.info("Successfully deleted snapshots {}"; snapshotIds);
                        listener.onResponse(null);
                    }
                }
            }
        });

 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?