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 8b20f1a commit 5601758
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();

Check warning on line 2114 in server/src/main/java/org/opensearch/index/shard/IndexShard.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/index/shard/IndexShard.java#L2112-L2114

Added lines #L2112 - L2114 were not covered by tests
}
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);
}

Check warning on line 2120 in server/src/main/java/org/opensearch/index/shard/IndexShard.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/index/shard/IndexShard.java#L2117-L2120

Added lines #L2117 - L2120 were not covered by tests
Expand Down

0 comments on commit 5601758

Please sign in to comment.