Skip to content

Commit

Permalink
Changing wait period for sync to 30 sec from 1 min
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna committed Mar 21, 2024
1 parent a7c894e commit cf5dc23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void testMixedModeRelocation_RemoteSeedingFail() throws Exception {
clusterHealthResponse = client().admin()
.cluster()
.prepareHealth()
.setTimeout(TimeValue.timeValueSeconds(5))
.setTimeout(TimeValue.timeValueSeconds(45))
.setWaitForEvents(Priority.LANGUID)
.setWaitForNoRelocatingShards(true)
.execute()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2114,7 +2114,7 @@ public void waitForRemoteStoreSync(Runnable onProgress) {
segmentUploadeCount = directory.getSegmentsUploadedToRemoteStore().size();
}
try {
Thread.sleep(TimeValue.timeValueMinutes(1).seconds());
Thread.sleep(TimeValue.timeValueSeconds(30).seconds());
} catch (InterruptedException ie) {
throw new OpenSearchException("Interrupted waiting for completion of [{}]", ie);
}
Expand Down

0 comments on commit cf5dc23

Please sign in to comment.