Could not execute Update_rows event on table db.table; Can't find record in 'table', Error_code:
1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log mysql-bin.262297, end_log_pos
1983208
As of my knowledge the causing stop of slave SQL thread
error code of 1032, due to lack of sync between Master - Slave.
In our case, slave got an Update event form master, but
that particular record was not available in the slave. (Of course, that was
deleted on Master n Slave separately) You would get this error only if the
binlog_format is set to ROW_BASED or MIXED mode.
So, now check that particular binlog at that position
where replication stopped with this error.
When you convert the binlog with mysqlbinlog command, you
may see some junk characters where you
were expecting some DMLs which caused the error(In our case its an Update
statement).
So you can use below command to translate binlog
completely:
mysqlbinlog --base64-output=DECODE-ROWS --verbose mysql-bin.00001 >mysql-bin.00001.txt
Comments
Post a Comment