Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MariaDB binlog events differ from MySQL #296

Open
HemeraOne opened this issue Jul 8, 2021 · 0 comments · May be fixed by #297
Open

MariaDB binlog events differ from MySQL #296

HemeraOne opened this issue Jul 8, 2021 · 0 comments · May be fixed by #297

Comments

@HemeraOne
Copy link
Contributor

Running the binlog_streamer from MariaDB seems to be a little bit different.

an error seems to occur:

PANI[0001] tried to advance to a zero log position: mysql-bin.047756 0 string  tag=source_binlog_streamer

I tracked it down to the following events:
*replication.TableMapEvent, *replication.GenericEvent, *replication.QueryEvent

Which is documented to happen when a replica is unable to understand MariaDB's protocol:
"Dummy event replacing event type X that slave cannot handle."

To me it looks like it comes from the following events:
ANNOTATE_ROWS_EVENT (https://mariadb.com/kb/en/annotate_rows_event/)
As this is what I sniffed from the traffic:

# Dummy event replacing event type 160 that slave cannot handle

and the plain text "BEGIN" which both gets shoved in the replication.QueryEvent

Further more the also state that the TABLE_MAP_EVENT is used for row-based binlog:
https://mariadb.com/kb/en/table_map_event/

Currently debugging for more data, will come with a PR that works with my current MariaDB: 10.3.28-MariaDB-1:10.3.28+maria~focal-log

HemeraOne added a commit to HemeraOne/ghostferry that referenced this issue Jul 8, 2021
@HemeraOne HemeraOne linked a pull request Jul 8, 2021 that will close this issue
HemeraOne added a commit to HemeraOne/ghostferry that referenced this issue Jul 9, 2021
HemeraOne added a commit to HemeraOne/ghostferry that referenced this issue Jul 12, 2021
HemeraOne added a commit to HemeraOne/ghostferry that referenced this issue Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant