Open GoogleCodeExporter opened 9 years ago
What MySQL version are you using?
Original comment by Yoshinor...@gmail.com
on 25 Sep 2012 at 5:36
# mysql -V
mysql Ver 14.14 Distrib 5.5.24, for Linux (x86_64) using readline 5.1
Original comment by m.je...@gmail.com
on 25 Sep 2012 at 5:40
Is MySQL server version also 5.5.24? You can check by connecting to MySQL
server.
Original comment by Yoshinor...@gmail.com
on 25 Sep 2012 at 5:44
All of them are running on CentOS release 6.3 (Final) and MySQL version is:
Server version: 5.5.24-log MySQL Community Server (GPL)
Original comment by m.je...@gmail.com
on 25 Sep 2012 at 5:47
The error shows that "RESET SLAVE /*!50516 ALL */" on the new slave didn't
clear master information. MHA checks whether show slave status returns empty
results. Failover itself succeeded. But master information in general should be
removed, otherwise new master still replicates from original master. RESET
SLAVE ALL removes master information.
Would you please check below if possible:
- Run "RESET SLAVE /*!50516 ALL */" on the new master, and check SHOW SLAVE
STATUS returns empty result
- Do the whole failover steps again and check whether this behavior repeats
Original comment by Yoshinor...@gmail.com
on 25 Sep 2012 at 6:02
Running "RESET SLAVE /*!50516 ALL */" on the new master seems to have solved
the problem.
- Did we catch a bug?
- And why running masterha_manager --remove_dead_master_conf
--conf=/etc/mha/app1.cnf did not remove the old master (that failed) from the
config ?
Original comment by m.je...@gmail.com
on 25 Sep 2012 at 10:54
> - Did we catch a bug?
Is it possible for you to repeat whole failover steps and this behavior
repeats? If it repeats it's highly likely MHA bug.
> - And why running masterha_manager --remove_dead_master_conf
--conf=/etc/mha/app1.cnf did not remove the old master (that failed) from the
config ?
--remove_dead_master_conf does not remove the old master entry if failover
error code is not 0. Error code is 10 if RESET SLAVE fails. The logic is
implemented around MasterFailover.pm line 1537 and 1638.
Original comment by Yoshinor...@gmail.com
on 25 Sep 2012 at 11:07
I can reproduce this problem each time I run mysql-master-ha.
I tried to run with 2 and with 3 slaves and one master but it resulted in the
same error.
I sent you my config and logs in private email.
Original comment by m.je...@gmail.com
on 26 Sep 2012 at 10:58
I ran into this problem too. In my case, the reason was that my mha4mysql user
(the one specified in the masterha_manager config file) didn't have the
'RELOAD' privilege.
Original comment by l...@deviantart.com
on 5 Mar 2014 at 8:30
Original issue reported on code.google.com by
m.je...@gmail.com
on 25 Sep 2012 at 1:31