Skip to content

Commit

Permalink
Fix RemoteCloneIndex flaky test by using sync FS repo (#15037) (#15096)
Browse files Browse the repository at this point in the history
(cherry picked from commit 47171f8)

Signed-off-by: Gaurav Bafna <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 4fad470 commit 883af54
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected boolean forbidPrivateIndexSettings() {

@Before
public void setup() {
asyncUploadMockFsRepo = true;
asyncUploadMockFsRepo = false;
}

public void testCreateCloneIndex() {
Expand Down Expand Up @@ -153,6 +153,7 @@ public void testCreateCloneIndex() {

}

@AwaitsFix(bugUrl = "https://github.com/opensearch-project/OpenSearch/issues/15056")
public void testCreateCloneIndexLowPriorityRateLimit() {
Version version = VersionUtils.randomIndexCompatibleVersion(random());
int numPrimaryShards = 1;
Expand Down Expand Up @@ -280,7 +281,7 @@ public void testCreateCloneIndexFailure() throws ExecutionException, Interrupted
throw new RuntimeException(e);
} finally {
setFailRate(REPOSITORY_NAME, 0);
ensureGreen();
ensureGreen(TimeValue.timeValueSeconds(40));
// clean up
client().admin()
.cluster()
Expand Down

0 comments on commit 883af54

Please sign in to comment.