Skip to content

Commit

Permalink
increase recovery speed midway
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna committed Jun 12, 2024
1 parent cd5fcc7 commit 1c3a788
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ public void testRemotePrimaryRelocation() throws Exception {
int finalCurrentDoc = currentDoc;
waitUntil(() -> numAutoGenDocs.get() > finalCurrentDoc + 5);

// increase recovery speed a bit to account for current size
shardSize = client().admin().indices().prepareStats(INDEX_NAME).execute().actionGet().getShards()[0].getStats()
.getStore()
.size();
slowDownRecovery(shardSize);

client().admin()
.cluster()
.prepareReroute()
Expand Down

0 comments on commit 1c3a788

Please sign in to comment.