%s Failed to delete some blobs during snapshot delete – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.3-8.9

Briefly, this error occurs when Elasticsearch fails to delete some blobs (data blocks) during the deletion of a snapshot. This could be due to insufficient permissions, network issues, or a problem with the underlying storage system. To resolve this issue, you can try the following: 1) Check and adjust the permissions of the Elasticsearch user for the snapshot repository. 2) Verify the network connectivity between Elasticsearch and the snapshot repository. 3) Investigate the health and status of the underlying storage system. 4) Retry the snapshot deletion after resolving any identified issues.

This guide will help you check for common problems that cause the log ” %s Failed to delete some blobs during snapshot delete ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: repositories, blobstore, delete, snapshot.

Log Context

Log “%s Failed to delete some blobs during snapshot delete” classname is BlobStoreRepository.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        threadPool.executor(ThreadPool.Names.SNAPSHOT).execute(ActionRunnable.wrap(listener; l -> {
            try {
                deleteFromContainer(blobContainer(); filesToDelete);
                l.onResponse(null);
            } catch (Exception e) {
                logger.warn(() -> format("%s Failed to delete some blobs during snapshot delete"; snapshotIds); e);
                throw e;
            }
        }));
    }

 

 [ratemypost]