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

fixed MHA online switch master,when orig_master and new_master is same. #63

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

liucyao
Copy link

@liucyao liucyao commented Apr 19, 2016

when you switch master online,masterha_master_switch --master_state=alive --conf=/etc/masterha/app1.conf --new_master_host=xxxx --new_master_port=xxx, you new_master_host and new_master_port is same as you orig_master_host orig_master_port,MHA will execute function reject_update,it cause master failover vip change and set read_only on it until master_pos_wait exit.

liucyao added 4 commits April 19, 2016 19:02
when you switch master online,masterha_master_switch --master_state=alive --conf=/etc/masterha/app1.conf --new_master_host=xxxx --new_master_port=xxx, you new_master_host and new_master_port is same as you orig_master_host orig_master_port,MHA will execute function reject_update,it cause master failover vip change and set read_only on it until master_pos_wait exit.
@sjas
Copy link

sjas commented Apr 29, 2017

Trying to write the bug description in proper english as far as i can understand:

when you switch the master online:

masterha_master_switch --master_state=alive --conf=/etc/masterha/app1.conf --new_master_host=xxxx --new_master_port=xxx

with your new_master_host and new_master_port being the same as you orig_master_host and orig_master_port

MHA will execute function reject_update, causing master failover vip change and set it to read_only until master_pos_wait exits.

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.

2 participants