diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java index c5cd20ea1f8..6a42848cc7b 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/health/TransportClusterHealthAction.java @@ -101,7 +101,7 @@ public class TransportClusterHealthAction extends TransportMasterNodeOperationAc if (response.numberOfNodes() >= expected) { waitForCounter++; } - } else if (request.waitForNodes().startsWith("M=")) { + } else if (request.waitForNodes().startsWith("<=")) { int expected = Integer.parseInt(request.waitForNodes().substring(2)); if (response.numberOfNodes() <= expected) { waitForCounter++;