Another snapshot is currently running cannot delete – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-7.7

Briefly, this error occurs when you try to delete a snapshot in Elasticsearch while another snapshot operation is still running. Elasticsearch doesn’t allow simultaneous snapshot operations to prevent data inconsistencies. To resolve this issue, you can either wait for the current snapshot operation to complete before deleting, or you can manually stop the running snapshot operation using the ‘Delete Snapshot API’. However, be cautious as interrupting a snapshot operation can lead to incomplete snapshots.

This guide will help you check for common problems that cause the log ” another snapshot is currently running cannot delete ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: snapshot, delete.

Log Context

Log “another snapshot is currently running cannot delete” class name is SnapshotsService.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 SnapshotsInProgress.Entry snapshotEntry = snapshots != null ? snapshots.snapshot(snapshot) : null;
 if (snapshotEntry == null) {
 // This snapshot is not running - delete
 if (snapshots != null && !snapshots.entries().isEmpty()) {
 // However other snapshots are running - cannot continue
 throw new ConcurrentSnapshotExecutionException(snapshot; "another snapshot is currently running cannot delete");
 }
 // add the snapshot deletion to the cluster state
 SnapshotDeletionsInProgress.Entry entry = new SnapshotDeletionsInProgress.Entry(
 snapshot;
 threadPool.absoluteTimeInMillis();

 

 [ratemypost]