Bug #101955 "heartbeat is not compatible with local info" error message has garbled text
Submitted: 10 Dec 2020 13:51 Modified: 10 Dec 2020 15:36
Reporter: Yan Huang (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:5.7.32 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[10 Dec 2020 13:51] Yan Huang
Description:
Make an error of "heartbeat is not compatible with local info", with binlog checksum enabled, we will see the error log like "2020-12-09T14:36:07.783852Z 32 [ERROR] Slave I/O for channel '': Unexpected master's heartbeat data: heartbeat is not compatible with local info; the event's data: log_file_name
mysql-bin.000003<91><A2><A9>^Q log_pos 423626115, Error_code: 1623"

The checksum 0x11a9a291 was regarded as 4 garbled char at the end of file name.

How to repeat:
The error could be reproduced by the steps of https://bugs.mysql.com/bug.php?id=101948

Suggested fix:
The patch is attached
[10 Dec 2020 13:52] Yan Huang
patch

(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: rpl_slave.cc.diff (application/octet-stream, text), 788 bytes.

[10 Dec 2020 15:36] MySQL Verification Team
Hello Yan Huang,

Thank you for the report and contribution!

Thanks,
Umesh