diff --git a/server/src/internalClusterTest/java/org/opensearch/discovery/ClusterDisruptionIT.java b/server/src/internalClusterTest/java/org/opensearch/discovery/ClusterDisruptionIT.java index 85a03142b1d38..9239787259a1a 100644 --- a/server/src/internalClusterTest/java/org/opensearch/discovery/ClusterDisruptionIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/discovery/ClusterDisruptionIT.java @@ -81,9 +81,6 @@ import java.util.stream.Collectors; import java.util.stream.IntStream; -import static org.opensearch.action.DocWriteResponse.Result.CREATED; -import static org.opensearch.action.DocWriteResponse.Result.UPDATED; -import static org.opensearch.test.hamcrest.OpenSearchAssertions.assertAcked; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.everyItem; import static org.hamcrest.Matchers.greaterThanOrEqualTo; @@ -91,6 +88,9 @@ import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.oneOf; +import static org.opensearch.action.DocWriteResponse.Result.CREATED; +import static org.opensearch.action.DocWriteResponse.Result.UPDATED; +import static org.opensearch.test.hamcrest.OpenSearchAssertions.assertAcked; /** * Tests various cluster operations (e.g., indexing) during disruptions. @@ -291,6 +291,7 @@ public void testAckedIndexing() throws Exception { * Test that a document which is indexed on the majority side of a partition, is available from the minority side, * once the partition is healed */ + @AwaitsFix(bugUrl = "Failing with segrep as well") public void testRejoinDocumentExistsInAllShardCopies() throws Exception { List nodes = startCluster(3); @@ -303,6 +304,7 @@ public void testRejoinDocumentExistsInAllShardCopies() throws Exception { nodes = new ArrayList<>(nodes); Collections.shuffle(nodes, random()); + String isolatedNode = nodes.get(0); String notIsolatedNode = nodes.get(1); @@ -497,6 +499,7 @@ public void testIndicesDeleted() throws Exception { assertFalse(client().admin().indices().prepareExists(idxName).get().isExists()); } + @AwaitsFix(bugUrl = "Failing with segrep as well") public void testRestartNodeWhileIndexing() throws Exception { startCluster(3); String index = "restart_while_indexing";