mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 15:05:33 +00:00
This commit fixes an issue manifested in the SharedClusterSnapshotRestoreIT#testGetSnapshotsRequest where a delete request on a snapshot encounters an in-progress snapshot, so it first tries to abort the snapshot. During the aborting process, an exception is thrown which is handled by the snapshot listener's onSnapshotFailure method. This method retries the delete snapshot request, only to encounter that the snapshot is missing, throwing an exception. It is possible that the snapshot failure resulted in the snapshot never having been written to the repository, and hence, there is nothing to delete. This commit handles the SnapshotMissingException by logging it and notifying the listener of the missing snapshot. Closes #23663