From 050d4189f643537a4f41df134f6bf7601aada1f2 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 30 May 2023 09:23:32 -0700 Subject: [PATCH] Fix failing flaky test. (#7797) (#7823) (cherry picked from commit a20140046360f142d89c774e7a68fb6622681917) Signed-off-by: Rishikesh1159 Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .../org/opensearch/snapshots/SegmentReplicationSnapshotIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/internalClusterTest/java/org/opensearch/snapshots/SegmentReplicationSnapshotIT.java b/server/src/internalClusterTest/java/org/opensearch/snapshots/SegmentReplicationSnapshotIT.java index 3f79166f6a189..6ab36eaa4d64b 100644 --- a/server/src/internalClusterTest/java/org/opensearch/snapshots/SegmentReplicationSnapshotIT.java +++ b/server/src/internalClusterTest/java/org/opensearch/snapshots/SegmentReplicationSnapshotIT.java @@ -279,6 +279,7 @@ public void testSnapshotRestoreOnIndexWithSegRepClusterSetting() throws Exceptio Settings.builder() // we want to override cluster replication setting by passing a index replication setting .put(IndexMetadata.SETTING_REPLICATION_TYPE, ReplicationType.DOCUMENT) + .put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, REPLICA_COUNT) ).get(); ensureYellowAndNoInitializingShards(INDEX_NAME); final String replicaNode = internalCluster().startNode(settings);