Skip to content

Commit cf5dc23

Browse files
committed
Changing wait period for sync to 30 sec from 1 min
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
1 parent a7c894e commit cf5dc23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/internalClusterTest/java/org/opensearch/remotemigration/RemotePrimaryRelocationIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void testMixedModeRelocation_RemoteSeedingFail() throws Exception {
186186
clusterHealthResponse = client().admin()
187187
.cluster()
188188
.prepareHealth()
189-
.setTimeout(TimeValue.timeValueSeconds(5))
189+
.setTimeout(TimeValue.timeValueSeconds(45))
190190
.setWaitForEvents(Priority.LANGUID)
191191
.setWaitForNoRelocatingShards(true)
192192
.execute()

server/src/main/java/org/opensearch/index/shard/IndexShard.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@ public void waitForRemoteStoreSync(Runnable onProgress) {
21142114
segmentUploadeCount = directory.getSegmentsUploadedToRemoteStore().size();
21152115
}
21162116
try {
2117-
Thread.sleep(TimeValue.timeValueMinutes(1).seconds());
2117+
Thread.sleep(TimeValue.timeValueSeconds(30).seconds());
21182118
} catch (InterruptedException ie) {
21192119
throw new OpenSearchException("Interrupted waiting for completion of [{}]", ie);
21202120
}

0 commit comments

Comments
 (0)