-
Notifications
You must be signed in to change notification settings - Fork 1k
Add GTIDEvent interface to get the SequenceNumber and LastCommitted #818
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
Conversation
How about we expose And also an |
What topology would this be useful? I don't think this would be common enough to be useful for MySQL in most cases.
Sure, I can remove |
0b9e6a4
to
5076dc2
Compare
I did this, but it doesn't really work because of MariaDBs unsigned int64 vs MySQL signed int64. The changes are pushed so you can take a look. |
seems I'll check MariaDB later. Maybe unify them is not a good idea. |
@lance6716 I updated the code and added some tests for the GTID event. |
0b8de24
to
2ed1ac5
Compare
Sorry I didn't realised it before I recommend to put the
is the final version. And IMO the
But in opposition to it, this library should only care about parsing and leave the dependency calculation to the upper application layer. Do you have any ideas? |
I think the dependency calculation should be up to the application. One issue with having it in Canal is that I don't think it could work in MariaDB and MySQL. The dependency calculation also changes if there is filtering, so I think the application has to decide anyways. |
Problem
We've implemented MySQL Parallel Replication on our application that uses a fork of this library, and would like to merge the changes upstream.
Here are some details explaining it: https://github.com/isotopp/mysql-dev-examples/blob/master/mysql-binlog-parallel/parallel.md
We need to get the SequenceNumber and LastCommitted in order to do so. This is what I thought was the best way. Will have to be part of the next major release because it changes the interface of the handler.