Snapshot is done – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when a snapshot operation in Elasticsearch has been completed. It’s not an error, but a status message indicating that the snapshot process has finished successfully. If you’re seeing this message frequently and it’s causing confusion, you might want to adjust your logging settings to reduce the verbosity. Alternatively, if you didn’t expect a snapshot to be taken, check your automated tasks or scripts to ensure they’re running as expected.

This guide will help you check for common problems that cause the log ” snapshot [{}] is done ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: shards and snapshot.

Log Context

Log “snapshot [{}] is done” classname is SnapshotShardsService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                                 // TODO: Add PARTIAL_SUCCESS status?
                                SnapshotsInProgress.Entry updatedEntry = new SnapshotsInProgress.Entry(entry; SnapshotsInProgress.State.SUCCESS; ImmutableMap.copyOf(shards));
                                entries.add(updatedEntry);
                                // Finalize snapshot in the repository
                                snapshotsService.endSnapshot(updatedEntry);
                                logger.info("snapshot [{}] is done"; updatedEntry.snapshotId());
                            }
                        } else {
                            entries.add(entry);
                        }
                    }




 

 [ratemypost]