From 6ce66281d84ad8cc76219fa56ceb6187f1e1bb2d Mon Sep 17 00:00:00 2001 From: Rishab Nahata Date: Tue, 13 Dec 2022 17:45:54 +0530 Subject: [PATCH] Update timeout Signed-off-by: Rishab Nahata --- .../opensearch/cluster/decommission/DecommissionService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/cluster/decommission/DecommissionService.java b/server/src/main/java/org/opensearch/cluster/decommission/DecommissionService.java index 73fb584c71504..f36d7b3e06da9 100644 --- a/server/src/main/java/org/opensearch/cluster/decommission/DecommissionService.java +++ b/server/src/main/java/org/opensearch/cluster/decommission/DecommissionService.java @@ -161,7 +161,7 @@ public ClusterState execute(ClusterState currentState) { newState = addVotingConfigExclusionsForNodesToBeDecommissioned( newState, nodeIdsToBeExcluded, - TimeValue.timeValueSeconds(60), // TODO - update it with request timeout + TimeValue.timeValueSeconds(120), // TODO - update it with request timeout maxVotingConfigExclusions ); logger.debug( @@ -201,7 +201,7 @@ public void clusterStateProcessed(String source, ClusterState oldState, ClusterS final ClusterStateObserver observer = new ClusterStateObserver( clusterService, - TimeValue.timeValueSeconds(60), // TODO - update it with request timeout + TimeValue.timeValueSeconds(120), // TODO - update it with request timeout logger, threadPool.getThreadContext() );