Skip to content

Commit

Permalink
Verify auto follower recover after full leader cluster restart (#89207)
Browse files Browse the repository at this point in the history
Re-setting remote connection is no longer required as cluster port is not
changing after restart.
  • Loading branch information
idegtiarenko authored Aug 11, 2022
1 parent 7cc275d commit 453b5b1
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ public void testFollowIndex() throws Exception {
leaderClient().prepareIndex("index1").setSource("{}", XContentType.JSON).get();
}

cleanRemoteCluster();
getLeaderCluster().fullRestart();
ensureLeaderGreen("index1");
// Remote connection needs to be re-configured, because all the nodes in leader cluster have been restarted:
setupRemoteCluster();

final long thirdBatchNumDocs = randomIntBetween(10, 200);
for (int i = 0; i < thirdBatchNumDocs; i++) {
Expand Down

0 comments on commit 453b5b1

Please sign in to comment.