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

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 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