Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

relocate-replicas: sanity check to avoid invalid circular replication #839

Merged
merged 2 commits into from
Mar 13, 2019

Conversation

shlomi-noach
Copy link
Collaborator

Fixes #838

The specific relocate-replicas command (e.g. relocate-replicas -i srv1 -d srv2) will pre-verify that none of the replicas of instance srv1 is an ancestor of srv2.

The check is based on ancestry_uuid which is based on the server_uuid variable, which is available 5.6 and onwards.

@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster March 13, 2019 03:36 Inactive
@shlomi-noach
Copy link
Collaborator Author

Deploys and works well. cc @tomkrouper

@shlomi-noach
Copy link
Collaborator Author

The fix applies to the relocate command, too.

@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster March 13, 2019 19:46 Inactive
@shlomi-noach shlomi-noach merged commit 760bf40 into master Mar 13, 2019
@shlomi-noach shlomi-noach deleted the relocate-replicas-sanity-check branch March 13, 2019 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant