[MDEV-19708] RBR replication loses data silently ignoring important column attributes Created: 2019-06-07 Updated: 2023-12-22 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Fix Version/s: | 11.5 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Andrei Elkin |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | upstream-fixed | ||
| Issue Links: |
|
||||||||||||||||
| Epic Link: | Data type cleanups | ||||||||||||||||
| Description |
|
RBR replication does not store enough column attributes, which leads to silent data loss. These important attributes are known not to be stored:
It should be fixed to store all important attributes in the binary log. Detailed description: The UNSIGNED flagIn the following test I create a table with an INT UNSIGNED column on the master, but on the slave I intentionally remove the UNSIGNED flag, to make fields not fully compatible. I create a test file AAA-INT.test with the following content:
Now if I run "./mtr AAA-INT,row", the test works without errors and displays the following output:
Notice:
Note, if I run "./mtr AAA-INT,stmt", the test returns on an error as expected:
The character setThe same problem happens with string fields having different character sets.
Now I run "./mtr AAA-STR,row", the test works without errors and displays the following output:
Notice:
Note, if I run "./mtr AAA-STR,stmt", the test returns on an error as expected:
|
| Comments |
| Comment by Alexander Barkov [ 2019-06-07 ] | ||||||||||||||||||
|
Worklog 4618 fixed this problem in MySQL-8.0.1 Related changes:
| ||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2019-06-22 ] | ||||||||||||||||||
|
Also this commit
| ||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2019-06-25 ] | ||||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2019-June/013877.html | ||||||||||||||||||
| Comment by Sachin Setiya (Inactive) [ 2019-08-14 ] | ||||||||||||||||||
|
bb-10.5-19708 | ||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-04 ] | ||||||||||||||||||
|
The patch |