diff --git a/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java b/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java index 68bc768b6ba..cfec9399251 100644 --- a/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java +++ b/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java @@ -74,6 +74,11 @@ public class TransportClusterHealthAction extends TransportMasterNodeOperationAc return new ClusterHealthResponse(); } + @Override + protected boolean localExecute(ClusterHealthRequest request) { + return request.local(); + } + @Override protected ClusterHealthResponse masterOperation(ClusterHealthRequest request, ClusterState unusedState) throws ElasticSearchException { long endTime = System.currentTimeMillis() + request.timeout().millis();