Bug #108064 | forcePrimaryCluster failing, no override | ||
---|---|---|---|
Submitted: | 3 Aug 2022 15:06 | Modified: | 22 Aug 2022 18:23 |
Reporter: | Jay Janssen | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Shell AdminAPI InnoDB Cluster / ReplicaSet | Severity: | S1 (Critical) |
Version: | 8.0.30 | OS: | Any |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[3 Aug 2022 15:06]
Jay Janssen
[3 Aug 2022 15:22]
Jay Janssen
on hindsight, this is S1. I'm attempting to reproduce
[3 Aug 2022 16:05]
Miguel Araujo
Hi Jay, Can you please reproduce the issue with the logging set to debug level and share the relevant log entries? Either start shell with $ ./bin/mysqlsh --log-level=8 --dba-log-sql=2 or, do the following when shell is already running: shell.options["dba.logSql"]=2 shell.options["logLevel"]=8 Thanks.
[4 Aug 2022 17:44]
Alfredo Kojima
I was able to reproduce by ensuring the applier is still applying a backlog of transactions at the time of the failover. A workaround is waiting for the applier queue to empty before failover.
[22 Aug 2022 18:23]
Edward Gilmore
Posted by developer: Added the following note to the MySQL Shell 8.0.31 release notes: Cluster failover could fail under high load because the cluster being promoted was compared with itself in checks to confirm the promoted cluster was the most up-to-date. This comparison failed because the applier was catching up and the GTID_EXECUTED comparison resulted in two different values. As of this release, the check for most up-to-date cluster does not include the promoted cluster. Thanks to Jay Janssen for reporting this issue.