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

Master failover: fix processes flow on PreFailoverProcesses failure #1044

Merged
merged 2 commits into from
Jan 8, 2020

Conversation

shlomi-noach
Copy link
Collaborator

A bug seems to have been introduced recently, and this PR fixes it.

On a master failover, if any one of PreFailoverProcesses fails, the entire failover operation should be aborted. This implies not running any post-failover processes.

In the existing bug, the failover itself does not take place, but PostUnsuccessfulFailoverProcesses do get invoked.

This PR fixes the situation.

cc @jfg956 who brought this to my attention in chat.

@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=conductor January 8, 2020 08:13 Inactive
@shlomi-noach shlomi-noach merged commit 7676980 into master Jan 8, 2020
@shlomi-noach shlomi-noach deleted the pre-failover-failure-abort branch January 8, 2020 08:47
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