Skip to content

Commit ecd0b6c

Browse files
Merge branch 'main' into feature/synthtic-source-recovery-default
2 parents ee4e4f2 + 0cd3ff5 commit ecd0b6c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

muted-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,6 @@ tests:
274274
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
275275
method: test {p0=nodes.stats/11_indices_metrics/indices mappings exact count test for indices level}
276276
issue: https://github.com/elastic/elasticsearch/issues/120950
277-
- class: org.elasticsearch.xpack.shutdown.AllocationFailuresResetOnShutdownIT
278-
method: testResetAllocationFailuresOnNodeShutdown
279-
issue: https://github.com/elastic/elasticsearch/issues/121129
280277
- class: org.elasticsearch.xpack.security.authc.jwt.JwtRealmSingleNodeTests
281278
method: testActivateProfileForJWT
282279
issue: https://github.com/elastic/elasticsearch/issues/120983
@@ -447,6 +444,9 @@ tests:
447444
- class: org.elasticsearch.xpack.esql.action.CrossClustersCancellationIT
448445
method: testCancelSkipUnavailable
449446
issue: https://github.com/elastic/elasticsearch/issues/121631
447+
- class: org.elasticsearch.upgrades.UpgradeClusterClientYamlTestSuiteIT
448+
method: test {p0=mixed_cluster/110_enrich/Enrich stats query smoke test for mixed cluster}
449+
issue: https://github.com/elastic/elasticsearch/issues/121642
450450

451451
# Examples:
452452
#

x-pack/plugin/shutdown/src/internalClusterTest/java/org/elasticsearch/xpack/shutdown/AllocationFailuresResetOnShutdownIT.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,18 @@ public void beforeIndexShardCreated(ShardRouting routing, Settings indexSettings
175175

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

178-
// await all relocation attempts are exhausted
178+
// await all allocation attempts are exhausted
179179
var maxAttempts = MaxRetryAllocationDecider.SETTING_ALLOCATION_MAX_RETRY.get(Settings.EMPTY);
180180
ensureRed("index1");
181-
{
181+
assertBusy(() -> {
182182
var state = safeGet(clusterAdmin().prepareState(TEST_REQUEST_TIMEOUT).execute()).getState();
183183
var index = state.getRoutingTable().index("index1");
184184
assertNotNull(index);
185185
var shard = index.shard(0).primaryShard();
186186
assertNotNull(shard);
187187
assertNotNull(shard.unassignedInfo());
188188
assertThat(maxAttempts, equalTo(shard.unassignedInfo().failedAllocations()));
189-
}
189+
});
190190

191191
failAllocation.set(false);
192192

@@ -240,13 +240,13 @@ public void beforeIndexShardCreated(ShardRouting routing, Settings indexSettings
240240
// await all allocation attempts are exhausted
241241
var maxAttempts = MaxRetryAllocationDecider.SETTING_ALLOCATION_MAX_RETRY.get(Settings.EMPTY);
242242
ensureRed("index1");
243-
{
243+
assertBusy(() -> {
244244
var state = safeGet(clusterAdmin().prepareState(TEST_REQUEST_TIMEOUT).execute()).getState();
245245
var shard = state.getRoutingTable().index("index1").shard(0).primaryShard();
246246
assertNotNull(shard);
247247
assertNotNull(shard.unassignedInfo());
248248
assertThat(maxAttempts, equalTo(shard.unassignedInfo().failedAllocations()));
249-
}
249+
});
250250

251251
failAllocation.set(false);
252252

0 commit comments

Comments
 (0)