yoshinorim / mha4mysql-manager

Development tree of Master High Availability Manager and tools for MySQL (MHA), Manager part
http://code.google.com/p/mysql-master-ha/
GNU General Public License v2.0
1.46k stars 501 forks source link

Add command line option to check for errant transaction #110

Open LaurentKol opened 6 years ago

LaurentKol commented 6 years ago

This errant transactions check is only performed if --check_for_errant_transactions is present on masterha_master_switch command line, default behavior is unchanged.

If errant transactions are found, switch-over is aborted during Phase 1 (Configuration Check Phase) and a fix is suggested using mysqlslavetrx.

This is to prevent switch-over to get stuck after the CHANGE MASTER statement with replication error 1236.