Skip to content

Commit 06d35f4

Browse files
committed
Backport wait_for_initialiazing_shards to cluster health API
Relates #27489
1 parent 17e9940 commit 06d35f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/java/org/elasticsearch/action/admin/cluster/health/ClusterHealthRequest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public ClusterHealthRequest(StreamInput in) throws IOException {
7474
if (in.readBoolean()) {
7575
waitForEvents = Priority.readFrom(in);
7676
}
77-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
77+
if (in.getVersion().onOrAfter(Version.V_6_2_0)) {
7878
waitForNoInitializingShards = in.readBoolean();
7979
}
8080
}
@@ -106,7 +106,7 @@ public void writeTo(StreamOutput out) throws IOException {
106106
out.writeBoolean(true);
107107
Priority.writeTo(waitForEvents, out);
108108
}
109-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
109+
if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
110110
out.writeBoolean(waitForNoInitializingShards);
111111
}
112112
}

rest-api-spec/src/main/resources/rest-api-spec/test/cluster.health/10_basic.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
---
9696
"cluster health basic test, one index with wait for no initializing shards":
9797
- skip:
98-
version: " - 6.99.99"
99-
reason: "wait_for_no_initializing_shards is introduced in 7.0.0"
98+
version: " - 6.1.99"
99+
reason: "wait_for_no_initializing_shards is introduced in 6.2.0"
100100

101101
- do:
102102
indices.create:

0 commit comments

Comments
 (0)