Snapshot with the same name is already in-progress – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.1-8.9

Briefly, this error occurs when you attempt to create a new Elasticsearch snapshot with a name that is already being used by an ongoing snapshot operation. Elasticsearch doesn’t allow two snapshots with the same name to run concurrently. To resolve this issue, you can either wait for the current snapshot operation to complete before starting a new one, or you can use a different name for the new snapshot. It’s also recommended to check the status of your snapshots regularly to avoid such conflicts.

This guide will help you check for common problems that cause the log ” snapshot with the same name is already in-progress ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: snapshot.

Log Context

Log “snapshot with the same name is already in-progress” class name is SnapshotsService.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 );
 }  private static void ensureSnapshotNameNotRunning(SnapshotsInProgress runningSnapshots; String repositoryName; String snapshotName) {
 if (runningSnapshots.forRepo(repositoryName).stream().anyMatch(s -> s.snapshot().getSnapshotId().getName().equals(snapshotName))) {
 throw new SnapshotNameAlreadyInUseException(repositoryName; snapshotName; "snapshot with the same name is already in-progress");
 }
 }  // TODO: It is worth revisiting the design choice of creating a placeholder entry in snapshots-in-progress here once we have a cache
 // for repository metadata and loading it has predictable performance

 

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?