[MXS-1496] Both Master and Slave status after slave is promoted Created: 2017-10-24  Updated: 2018-03-28  Resolved: 2017-11-08

Status: Closed
Project: MariaDB MaxScale
Component/s: mariadbmon
Affects Version/s: 2.1.9
Fix Version/s: 2.2.0

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

When mysqlmon detects that a server has been promoted, it first assigns the Master, Slave, Running status. On the next monitoring interval, it assigns the proper Master, Running status. This causes the new_master event to be triggered twice.

Here is an excerpt from a log file showing the behavior.

2017-10-24 19:49:29   notice : Server changed state: server2[192.168.121.202:3306]: new_master. [Slave, Running] -> [Master, Slave, Running]
2017-10-24 19:49:29   notice : [mysqlmon] A Master Server is now available: 192.168.121.202:3306
2017-10-24 19:49:30   notice : Server changed state: server2[192.168.121.202:3306]: new_master. [Master, Slave, Running] -> [Master, Running]
2017-10-24 19:49:30   notice : [mysqlmon] A Master Server is now available: 192.168.121.202:3306



 Comments   
Comment by markus makela [ 2017-11-08 ]

The slave state is now correctly cleared from master servers.

Generated at Thu Feb 08 04:07:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.