Skip to content
Merged
Changes from all 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 @@ -325,7 +325,7 @@ public void testStalledShardMigrationProperlyDetected() throws Exception {

// Mark the node for shutdown
putNodeShutdown(nodeIdToShutdown, "remove");
{
assertBusy(() -> {
// Now check the shard migration status
Request getStatusRequest = new Request("GET", "_nodes/" + nodeIdToShutdown + "/shutdown");
Response statusResponse = client().performRequest(getStatusRequest);
Expand All @@ -340,7 +340,7 @@ public void testStalledShardMigrationProperlyDetected() throws Exception {
)
);
assertThat(ObjectPath.eval("nodes.0.shard_migration.node_allocation_decision", status), notNullValue());
}
});

// Now update the allocation requirements to unblock shard relocation
Request updateSettingsRequest = new Request("PUT", indexName + "/_settings");
Expand Down