flink-cdc
flink-cdc copied to clipboard
[MySQL] Fix for DBZ-7037 and 2217 to not clear tableMapEventByTableId for fake Rotates Event
Event log
Caused by: com.github.shyiko.mysql.binlog.event.deserialization.MissingTableMapEventException
would occur as explained in issue #2217 whereby client is restarted during the consumption process, leading to a Rotate Event that clears the tableMapEventByTableId.
This has been fixed in DBZ discussing the same issue. This PR tries to port that fix over since Flink CDC clones the MySqlStreamingChangeEventSource.