Skip to content

Commit

Permalink
Backport wait_for_initialiazing_shards to cluster health API
Browse files Browse the repository at this point in the history
Relates #27489
  • Loading branch information
dnhatn committed Nov 24, 2017
1 parent 17e9940 commit 06d35f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public ClusterHealthRequest(StreamInput in) throws IOException {
if (in.readBoolean()) {
waitForEvents = Priority.readFrom(in);
}
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (in.getVersion().onOrAfter(Version.V_6_2_0)) {
waitForNoInitializingShards = in.readBoolean();
}
}
Expand Down Expand Up @@ -106,7 +106,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeBoolean(true);
Priority.writeTo(waitForEvents, out);
}
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
out.writeBoolean(waitForNoInitializingShards);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
---
"cluster health basic test, one index with wait for no initializing shards":
- skip:
version: " - 6.99.99"
reason: "wait_for_no_initializing_shards is introduced in 7.0.0"
version: " - 6.1.99"
reason: "wait_for_no_initializing_shards is introduced in 6.2.0"

- do:
indices.create:
Expand Down

0 comments on commit 06d35f4

Please sign in to comment.