Skip to content

Commit 8378949

Browse files
ywangdDaveCTurner
andauthored
Update server/src/main/java/org/elasticsearch/repositories/FinalizeSnapshotContext.java
Co-authored-by: David Turner <[email protected]>
1 parent 86fd758 commit 8378949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/repositories/FinalizeSnapshotContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public void onResponse(RepositoryData repositoryData) {
127127
/**
128128
* A record used to track the new shard generations that have been written for each shard in a snapshot.
129129
* An index may be deleted after the shard generation is written but before the snapshot is finalized.
130-
* In this case, its shard generation is tracked in {@link #deletedIndices}. Otherwise, it is tracked in
130+
* In this case, its shard generation is tracked in {@link #deletedIndices} because it's still a valid shard generation blob that exists in the repository and may be used by subsequent snapshots, even though the index will not be included in the snapshot being finalized. Otherwise, it is tracked in
131131
* {@link #liveIndices}.
132132
*/
133133
public record UpdatedShardGenerations(ShardGenerations liveIndices, ShardGenerations deletedIndices) {

0 commit comments

Comments
 (0)