Class RegisteredPolicySnapshots

java.lang.Object
org.elasticsearch.snapshots.RegisteredPolicySnapshots
All Implemented Interfaces:
Diffable<Metadata.Custom>, Metadata.Custom, NamedDiffable<Metadata.Custom>, NamedWriteable, VersionedNamedWriteable, Writeable, ChunkedToXContent

public class RegisteredPolicySnapshots extends Object implements Metadata.Custom
RegisteredPolicySnapshots records a set of snapshot IDs along with their SLM policy name. It is used to infer the failure of snapshots which did not record their failure in SnapshotLifecycleStats. The set is stored in the cluster state as custom metadata. When a snapshot is started by SLM, it is added to this set. Upon completion, is it removed. If a snapshot does not record its failure in SnapshotLifecycleStats, likely due to a master shutdown, it will not be removed from the registered set. A subsequent snapshot will then find that a registered snapshot is no longer running and will infer that it failed, updating SnapshotLifecycleStats accordingly.