From 4875d6fb0bfd5020e62996c1f761f9685104959d Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Fri, 2 Nov 2018 07:01:46 -0400 Subject: [PATCH] CCR: Add NodeClosedException to retryable list (#35191) This change adds NodeClosedException to the retry-able exception list. --- .../org/elasticsearch/xpack/ccr/action/ShardFollowNodeTask.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardFollowNodeTask.java b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardFollowNodeTask.java index 8c302344ad8..13dc736722e 100644 --- a/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardFollowNodeTask.java +++ b/x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/action/ShardFollowNodeTask.java @@ -26,6 +26,7 @@ import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.index.shard.ShardNotFoundException; import org.elasticsearch.index.translog.Translog; import org.elasticsearch.indices.IndexClosedException; +import org.elasticsearch.node.NodeClosedException; import org.elasticsearch.persistent.AllocatedPersistentTask; import org.elasticsearch.tasks.TaskId; import org.elasticsearch.transport.NodeDisconnectedException; @@ -416,6 +417,7 @@ public abstract class ShardFollowNodeTask extends AllocatedPersistentTask { actual instanceof IndexClosedException || // If follow index is closed actual instanceof NodeDisconnectedException || actual instanceof NodeNotConnectedException || + actual instanceof NodeClosedException || (actual.getMessage() != null && actual.getMessage().contains("TransportService is closed")); }