diff --git a/server/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java b/server/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java index 00ce17d74783d..1e38fe9b35eb2 100644 --- a/server/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java +++ b/server/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java @@ -3706,7 +3706,6 @@ public void testAbortedSnapshotDuringInitDoesNotStart() throws Exception { } } - @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/38223") public void testRestoreIncreasesPrimaryTerms() { final String indexName = randomAlphaOfLengthBetween(5, 10).toLowerCase(Locale.ROOT); createIndex(indexName, Settings.builder() @@ -3719,7 +3718,7 @@ public void testRestoreIncreasesPrimaryTerms() { // open and close the index to increase the primary terms for (int i = 0; i < randomInt(3); i++) { assertAcked(client().admin().indices().prepareClose(indexName)); - assertAcked(client().admin().indices().prepareOpen(indexName)); + assertAcked(client().admin().indices().prepareOpen(indexName).setWaitForActiveShards(ActiveShardCount.ONE)); } }