Skip to content

Commit a699b72

Browse files
CR: comment on primary relocation
1 parent 42a18c5 commit a699b72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/org/elasticsearch/snapshots/package-info.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
* {@link org.elasticsearch.cluster.SnapshotsInProgress.ShardSnapshotStatus} that tracks the assignment of which node is to snapshot which
4646
* shard. All shard snapshots are executed on the shard's primary node. Thus all shards for which the primary node was found to have a
4747
* healthy copy of the shard are marked as being in state {@code INIT} in this map. If the primary for a shard is unassigned, it is marked
48-
* as {@code MISSING} in this map. In case the primary is initializing at this point, it is marked as in state {@code WAITING}.</li>
48+
* as {@code MISSING} in this map. In case the primary is initializing at this point, it is marked as in state {@code WAITING}. In case a
49+
* shard's primary is relocated at any point after its {@code SnapshotsInProgress.Entry} has moved to state {@code STARTED} and thus been
50+
* assigned to a specific cluster node, that shard's snapshot will fail and move to state {@code FAILED}.</li>
4951
*
5052
* <li>The new {@code SnapshotsInProgress.Entry} is then observed by
5153
* {@link org.elasticsearch.snapshots.SnapshotShardsService#clusterChanged} on all nodes and since the entry is in state {@code STARTED}

0 commit comments

Comments
 (0)