mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
CCR: Test follow on top of closed index (#54956)
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.
This commit is contained in:
parent
b5974f3d41
commit
b3eb57a094
@ -1294,6 +1294,9 @@ public class IndexFollowingIT extends CcrIntegTestCase {
|
|||||||
|
|
||||||
followerClient().admin().indices().prepareClose("index2").get();
|
followerClient().admin().indices().prepareClose("index2").get();
|
||||||
pauseFollow("index2");
|
pauseFollow("index2");
|
||||||
|
if (randomBoolean()) {
|
||||||
|
assertAcked(followerClient().execute(UnfollowAction.INSTANCE, new UnfollowAction.Request("index2")).actionGet());
|
||||||
|
}
|
||||||
|
|
||||||
final PutFollowAction.Request followRequest2 = putFollow("index1", "index2");
|
final PutFollowAction.Request followRequest2 = putFollow("index1", "index2");
|
||||||
PutFollowAction.Response response2 = followerClient().execute(PutFollowAction.INSTANCE, followRequest2).get();
|
PutFollowAction.Response response2 = followerClient().execute(PutFollowAction.INSTANCE, followRequest2).get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user