gmo-media / mikasafabric

mikasafabric for MySQL is fork product of MySQL Fabric.
https://example.com/
GNU General Public License v2.0
3 stars 3 forks source link

Group has been broken when switchover duration is over several second #2

Closed yoku0825 closed 8 years ago

yoku0825 commented 8 years ago

As of 0.1.2 switchover behaves as following.

  1. Turn on read_only and offline_mode at master
  2. Find candidate slave.
  3. Waiting for synchronizing master and slave using WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS
  4. RESET SLAVE and turn off read_only at candidate slave.
  5. Reconfigure replication of other slaves (including old-master)

After 0.0.7, mikasafabric detects FAULTY when server is offline_mode. Because of this, (old)master would be set FAULTY when duration between 1. and 5. is greater than FailureDectator's setting.

After 0.0.14, mikasafabric detects replication-breaking. Because of this behavior, other slave status would be set SPARE when duration between 1. and 5. is greater than FailureDectator's setting.

Add turning off FailureDectator before step 1. and add turning FailureDectator to previous state after 5.

yoku0825 commented 8 years ago
yoku0825 commented 8 years ago

Fixed by 0.2.0