Skip to content

Commit 37a8b94

Browse files
committed
commit
1 parent 4a0ac29 commit 37a8b94

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

x-pack/plugin/slm/src/main/java/org/elasticsearch/xpack/slm/SnapshotLifecycleTask.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,11 @@ public ClusterState execute(ClusterState currentState) throws Exception {
651651
final Set<SnapshotId> runningSnapshots = currentlyRunningSnapshots(currentState);
652652
final List<PolicySnapshot> newRegistered = new ArrayList<>();
653653

654-
// TODO: calculate stats for stale registered snapshots
654+
// By the time this task is executed, it is likely that the cluster state has changed and there could be more/less
655+
// registered snapshots than previously looked up with snapshot info. So we need to re-check the registered set and
656+
// TODO: calculate stats for stale registered snapshots, should we assume failure if snapshot info is not found, so that
657+
// the size of registered snaps won't grow indefinitely in the worst case?
658+
655659
// calculate stats for stale registered snapshots
656660
// int countSnapshotFailure = 0;
657661
// int countSnapshotSuccess = 0;

0 commit comments

Comments
 (0)