Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimistic handling of replication status, when quorum is simply lost… #66

Merged
merged 1 commit into from Mar 31, 2017

Conversation

dotmanila
Copy link
Contributor

… we do not reset slave

In some situations when a slave get disconnected i.e. network issues, the agent would think the master has crashed. However, this node may only have been split from the cluster and losing quorum - therefore we should take this into account and not immediately unset_master before the MYSQL instance is stopped, it should be preserved and resumed when the node rejoins the cluster. If at MySQL startup and the agent detects the preserved replication status Master_host does not match the current master host, then replication will be reset.

@dotmanila
Copy link
Contributor Author

This should fix issue #61.

Copy link

@y-trudeau y-trudeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent idea of looking for Quorum loss

@y-trudeau y-trudeau merged commit 2b1213a into Percona-Lab:master Mar 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants