From abc782abbbab8075bf7d329946359f08561a5c84 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 5 Jan 2012 20:50:16 +0200 Subject: [PATCH] add an option to control teh master node timeout in cluster health request --- .../action/admin/cluster/health/RestClusterHealthAction.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/elasticsearch/rest/action/admin/cluster/health/RestClusterHealthAction.java b/src/main/java/org/elasticsearch/rest/action/admin/cluster/health/RestClusterHealthAction.java index bdda24d13c8..fe5939c2e1b 100644 --- a/src/main/java/org/elasticsearch/rest/action/admin/cluster/health/RestClusterHealthAction.java +++ b/src/main/java/org/elasticsearch/rest/action/admin/cluster/health/RestClusterHealthAction.java @@ -53,6 +53,7 @@ public class RestClusterHealthAction extends BaseRestHandler { ClusterHealthRequest clusterHealthRequest = clusterHealthRequest(RestActions.splitIndices(request.param("index"))); int level = 0; try { + clusterHealthRequest.masterNodeTimeout(request.paramAsTime("master_timeout", clusterHealthRequest.masterNodeTimeout())); clusterHealthRequest.timeout(request.paramAsTime("timeout", clusterHealthRequest.timeout())); String waitForStatus = request.param("wait_for_status"); if (waitForStatus != null) {