Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,6 @@ tests:
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
method: test {p0=nodes.stats/11_indices_metrics/indices mappings exact count test for indices level}
issue: https://github.com/elastic/elasticsearch/issues/120950
- class: org.elasticsearch.xpack.shutdown.AllocationFailuresResetOnShutdownIT
method: testResetAllocationFailuresOnNodeShutdown
issue: https://github.com/elastic/elasticsearch/issues/121129
- class: org.elasticsearch.xpack.security.authc.jwt.JwtRealmSingleNodeTests
method: testActivateProfileForJWT
issue: https://github.com/elastic/elasticsearch/issues/120983
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,18 @@ public void beforeIndexShardCreated(ShardRouting routing, Settings indexSettings

prepareCreate("index1", indexSettings(1, 0)).execute();

// await all relocation attempts are exhausted
// await all allocation attempts are exhausted
var maxAttempts = MaxRetryAllocationDecider.SETTING_ALLOCATION_MAX_RETRY.get(Settings.EMPTY);
ensureRed("index1");
{
assertBusy(() -> {
var state = safeGet(clusterAdmin().prepareState(TEST_REQUEST_TIMEOUT).execute()).getState();
var index = state.getRoutingTable().index("index1");
assertNotNull(index);
var shard = index.shard(0).primaryShard();
assertNotNull(shard);
assertNotNull(shard.unassignedInfo());
assertThat(maxAttempts, equalTo(shard.unassignedInfo().failedAllocations()));
}
});

failAllocation.set(false);

Expand Down Expand Up @@ -240,13 +240,13 @@ public void beforeIndexShardCreated(ShardRouting routing, Settings indexSettings
// await all allocation attempts are exhausted
var maxAttempts = MaxRetryAllocationDecider.SETTING_ALLOCATION_MAX_RETRY.get(Settings.EMPTY);
ensureRed("index1");
{
assertBusy(() -> {
var state = safeGet(clusterAdmin().prepareState(TEST_REQUEST_TIMEOUT).execute()).getState();
var shard = state.getRoutingTable().index("index1").shard(0).primaryShard();
assertNotNull(shard);
assertNotNull(shard.unassignedInfo());
assertThat(maxAttempts, equalTo(shard.unassignedInfo().failedAllocations()));
}
});

failAllocation.set(false);

Expand Down