近期发现了MySQL8.0主从复制的一个bug,想在这里分享下。我们使用的版本是MySQL8.0.22,具体报错信息如下:
Last_SQL_Error: Could not execute Update_rows event on table <database name>.<table name>;
Can't find record in '<table name>', Error_code: 1032; handler error HA_ERR_END_OF_FILE;
the event's master log <source binary log file name>, end_log_pos <source binary log file position>
前期在和oracle工程师交流时,对方称如果在从库执行了DML操作,有可能造成主从数据不一致,被我义正严辞的否定了这个说法。