File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
x-pack/plugin/slm/src/main/java/org/elasticsearch/xpack/slm Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments