Skip to content

Commit cb73eea

Browse files
committed
try posting status forever
1 parent ea7ec38 commit cb73eea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/org/elasticsearch/snapshots/SnapshotShardsService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ public UpdateIndexShardSnapshotStatusRequest(Snapshot snapshot, ShardId shardId,
483483
this.snapshot = snapshot;
484484
this.shardId = shardId;
485485
this.status = status;
486+
// By default, we keep trying to post snapshot status messages to avoid snapshot processes getting stuck.
487+
this.masterNodeTimeout = TimeValue.timeValueNanos(Long.MAX_VALUE);
486488
}
487489

488490
@Override

0 commit comments

Comments
 (0)