Skip to content

Commit 1c3a788

Browse files
committed
increase recovery speed midway
Signed-off-by: Gaurav Bafna <[email protected]>
1 parent cd5fcc7 commit 1c3a788

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ public void testRemotePrimaryRelocation() throws Exception {
126126
int finalCurrentDoc = currentDoc;
127127
waitUntil(() -> numAutoGenDocs.get() > finalCurrentDoc + 5);
128128

129+
// increase recovery speed a bit to account for current size
130+
shardSize = client().admin().indices().prepareStats(INDEX_NAME).execute().actionGet().getShards()[0].getStats()
131+
.getStore()
132+
.size();
133+
slowDownRecovery(shardSize);
134+
129135
client().admin()
130136
.cluster()
131137
.prepareReroute()

0 commit comments

Comments
 (0)