From 1a24916fef8ccfbdc0eb8f1ab18b12ea7b2e3910 Mon Sep 17 00:00:00 2001 From: Tim Brooks Date: Tue, 14 Jul 2020 10:35:05 -0600 Subject: [PATCH] Enable replication retries on 7.9+ (#59546) Currently the work to support replication retries is present on 7.9. This commit enables these retries by setting the replication timeout to 60s. --- .../action/support/replication/TransportReplicationAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java b/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java index ed956c7d472..c70035e236f 100644 --- a/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java +++ b/server/src/main/java/org/elasticsearch/action/support/replication/TransportReplicationAction.java @@ -102,7 +102,7 @@ public abstract class TransportReplicationAction< * The timeout for retrying replication requests. */ public static final Setting REPLICATION_RETRY_TIMEOUT = - Setting.timeSetting("indices.replication.retry_timeout", TimeValue.timeValueSeconds(0), Setting.Property.Dynamic, + Setting.timeSetting("indices.replication.retry_timeout", TimeValue.timeValueSeconds(60), Setting.Property.Dynamic, Setting.Property.NodeScope); /**