-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
RBR replication works incorrectly for 'BINARY' type #3984
Labels
Comments
@alainjobart Let's discuss this when you have the time. |
Did some binlog mining:
Char codes:
For first update ('a'->'b'):
For second update ('b'->'cc'):
MySQL does not supply all bytes of a column. So, we have to add the padding before putting those in the where clause. |
Merged
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview of the Issue
MySQL pads
binary
columns with zeroes. Here's an example script that shows the problem:When a row like this goes through our binlog streamer, DMLs get generated as
val='a'
, and that does not match the target row. This fails filtered replication.Reproduction Steps
Create a table like the above, start running a split clone, and perform a DML that changes any row on that table. The filtered replication will fail to affect the target row.
The text was updated successfully, but these errors were encountered: