Briefly, this error occurs when Elasticsearch tries to revert to a previous state using a snapshot, but it fails to retrieve the snapshot ID. This could be due to a missing or corrupted snapshot, or issues with the snapshot repository. To resolve this, you can try to check the snapshot repository for any issues, ensure the snapshot exists and is not corrupted, or recreate the snapshot if necessary. If the issue persists, you may need to check the Elasticsearch logs for more detailed error messages.
This guide will help you check for common problems that cause the log ” Reverting to snapshot ‘” + request.getSnapshotId() + “‘ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin, request, snapshot.
Log Context
Log “Reverting to snapshot ‘” + request.getSnapshotId() + “‘” classname is TransportRevertModelSnapshotAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
RevertModelSnapshotAction.Request request; JobResultsProvider provider; Consumerhandler; Consumer errorHandler ) { logger.info("Reverting to snapshot '" + request.getSnapshotId() + "'"); if (ModelSnapshot.isTheEmptySnapshot(request.getSnapshotId())) { handler.accept(ModelSnapshot.emptySnapshot(request.getJobId())); return; }