Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address MappingIT#testMapperDynamicIndexSetting() test failure #109479

Merged
merged 3 commits into from
Jun 10, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,18 @@ public void testMapperDynamicIndexSetting() throws IOException {
assertOK(client().performRequest(request));
break;
case MIXED:
ensureHealth(r -> {
r.addParameter("wait_for_status", "yellow");
r.addParameter("wait_for_no_relocating_shards", "true");
});
break;
case UPGRADED:
// During the upgrade my-index shards may be allocated to not upgraded nodes, these then fail to allocate.
// If allocation fails more than 5 times, allocation is not retried immediately, this reroute triggers allocation
// any failed allocations. So that my-index health will be green.
Request rerouteRequest = new Request("POST", "cluster/reroute");
rerouteRequest.addParameter("retry_failed", "true");
assertOK(client().performRequest(rerouteRequest));
ensureGreen("my-index");
break;
}
Expand Down