Skip to content

Commit 302ae83

Browse files
Fix RemoteCloneIndex flaky test by using sync FS repo (#15037)
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com> (cherry picked from commit 47171f8) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4fad470 commit 302ae83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/internalClusterTest/java/org/opensearch/action/admin/indices/create/RemoteCloneIndexIT.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected boolean forbidPrivateIndexSettings() {
7979

8080
@Before
8181
public void setup() {
82-
asyncUploadMockFsRepo = true;
82+
asyncUploadMockFsRepo = false;
8383
}
8484

8585
public void testCreateCloneIndex() {
@@ -153,6 +153,7 @@ public void testCreateCloneIndex() {
153153

154154
}
155155

156+
@AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/15056")
156157
public void testCreateCloneIndexLowPriorityRateLimit() {
157158
Version version = VersionUtils.randomIndexCompatibleVersion(random());
158159
int numPrimaryShards = 1;
@@ -280,7 +281,7 @@ public void testCreateCloneIndexFailure() throws ExecutionException, Interrupted
280281
throw new RuntimeException(e);
281282
} finally {
282283
setFailRate(REPOSITORY_NAME, 0);
283-
ensureGreen();
284+
ensureGreen(TimeValue.timeValueSeconds(40));
284285
// clean up
285286
client().admin()
286287
.cluster()

0 commit comments

Comments
 (0)