Class InFlightShardSnapshotStates

java.lang.Object
org.elasticsearch.snapshots.InFlightShardSnapshotStates

public final class InFlightShardSnapshotStates extends Object
Holds information about currently in-flight shard level snapshot or clone operations on a per-shard level. Concretely, this means information on which shards are actively being written to in the repository currently as well as the latest written shard generation per shard in case there is a shard generation for a shard that has been cleanly written out to the repository but not yet made part of the current RepositoryData through a snapshot finalization.
  • Method Details

    • forRepo

      public static InFlightShardSnapshotStates forRepo(String repoName, List<SnapshotsInProgress.Entry> snapshots)
      Compute information about all shard ids that currently have in-flight state for the given repository.
      Parameters:
      repoName - repository name
      snapshots - snapshots in progress
      Returns:
      in flight shard states for all snapshot operation running for the given repository name