File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
x-pack/plugin/slm/src/main/java/org/elasticsearch/xpack/slm Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ public void onResponse(List<SnapshotInfo> snapshotInfo) {
262262
263263 @ Override
264264 public void onFailure (Exception e ) {
265- logger .warn (e );
266- // still record the completed snapshot
265+ logger .warn ("failed to retrieve stale registered snapshots for job [{}]" , jobId , e );
266+ // still record the successful snapshot
267267 submitUnbatchedTask (
268268 clusterService ,
269269 "slm-record-success-" + policyId ,
@@ -321,8 +321,8 @@ public void onResponse(List<SnapshotInfo> snapshotInfo) {
321321
322322 @ Override
323323 public void onFailure (Exception e ) {
324- logger .warn (e );
325- // still record the completed snapshot, next SLM run will retry clearing the stale registered snapshots
324+ logger .warn ("failed to retrieve stale registered snapshots for job [{}]" , jobId , e );
325+ // still record the failed snapshot
326326 submitUnbatchedTask (
327327 clusterService ,
328328 "slm-record-failure-" + policyMetadata .getPolicy ().getId (),
@@ -559,7 +559,7 @@ public ClusterState execute(ClusterState currentState) throws Exception {
559559 snapshotInfo .endTime (),
560560 String .format (
561561 Locale .ROOT ,
562- "found non-successful registered snapshot [%s] which is no longer running " ,
562+ "found failed registered snapshot [%s], the master node was likely shutdown during SLM execution " ,
563563 snapshotInfo .snapshotId ().getName ()
564564 )
565565 )
You can’t perform that action at this time.
0 commit comments