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

Override master promotion: apply post-unsuccessful processes #947

Merged
merged 1 commit into from Aug 6, 2019

Conversation

shlomi-noach
Copy link
Collaborator

Refactoring the code and consequences of overriding a master promotion.

Overriding a promotion happens if:

  • datacenter/region constraints fail
  • FailMasterPromotionIfSQLThreadNotUpToDate is met
  • DelayMasterPromotionIfSQLThreadNotUpToDate is unsuccesful

Previously, these overrides would report as if promotion was not attempted.
From now on, the failover will be reported as attempted and failed.

The consequence is that PostUnsuccessfulFailoverProcesses will be executed if master override took place. This is the logic we would expect: the promotion failed due to whatever constraint.

@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=conductor August 4, 2019 09:03 Inactive
@shlomi-noach shlomi-noach merged commit 724bec0 into master Aug 6, 2019
@shlomi-noach shlomi-noach deleted the override-master-promotion branch August 6, 2019 05:56
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

1 participant