OpenSearch/x-pack/plugin/ccr/qa
Tanguy Leroux 742fa818b8
Add Pause/Resume Auto Follower APIs (#47510) (#47904)
This commit adds two APIs that allow to pause and resume
CCR auto-follower patterns:

// pause auto-follower
POST /_ccr/auto_follow/my_pattern/pause

// resume auto-follower
POST /_ccr/auto_follow/my_pattern/resume

The ability to pause and resume auto-follow patterns can be
useful in some situations, including the rolling upgrades of
cluster using a bi-directional cross-cluster replication scheme
(see #46665).

This commit adds a new active flag to the AutoFollowPattern
and adapts the AutoCoordinator and AutoFollower classes so
that it stops to fetch remote's cluster state when all auto-follow
patterns associate to the remote cluster are paused.

When an auto-follower is paused, remote indices that match the
pattern are just ignored: they are not added to the pattern's
followed indices uids list that is maintained in the local cluster
state. This way, when the auto-follow pattern is resumed the
indices created in the remote cluster in the meantime will be
picked up again and added as new following indices. Indices
created and then deleted in the remote cluster will be ignored
as they won't be seen at all by the auto-follower pattern at
resume time.

Backport of #47510 for 7.x
2019-10-13 09:22:51 +02:00
..
downgrade-to-basic-license Restrict which tasks can use testclusters (#45198) 2019-08-09 13:38:01 +03:00
multi-cluster Restrict which tasks can use testclusters (#45198) 2019-08-09 13:38:01 +03:00
non-compliant-license Restrict which tasks can use testclusters (#45198) 2019-08-09 13:38:01 +03:00
rest Add Pause/Resume Auto Follower APIs (#47510) (#47904) 2019-10-13 09:22:51 +02:00
restart Restrict which tasks can use testclusters (#45198) 2019-08-09 13:38:01 +03:00
security Restrict which tasks can use testclusters (#45198) 2019-08-09 13:38:01 +03:00
src/main/java/org/elasticsearch/xpack/ccr Replicate aliases in cross-cluster replication (#42875) 2019-06-04 20:36:24 -04:00
build.gradle Testclusters: convert ccr tests (#42313) 2019-06-13 19:19:36 +03:00