Skip to content

Commit

Permalink
CCR: Test follow on top of closed index
Browse files Browse the repository at this point in the history
Added testing of following on top of a closed index.
This could for instance be the old leader index in
cases where leader and follower clusters have been
swapped.
  • Loading branch information
henningandersen committed Apr 8, 2020
1 parent 72be0b5 commit a2bcc48
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,9 @@ private void runFallBehindTest(

followerClient().admin().indices().prepareClose("index2").get();
pauseFollow("index2");
if (randomBoolean()) {
assertAcked(followerClient().execute(UnfollowAction.INSTANCE, new UnfollowAction.Request("index2")).actionGet());
}

final PutFollowAction.Request followRequest2 = putFollow("index1", "index2");
PutFollowAction.Response response2 = followerClient().execute(PutFollowAction.INSTANCE, followRequest2).get();
Expand Down

0 comments on commit a2bcc48

Please sign in to comment.