[MDEV-30428] checksums on multiple servers are not computed equally Created: 2023-01-18 Updated: 2023-05-02 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.5.18 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Marc | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
I'm not sure when or where this exactly happens (maybe massive inserts) Issuing a repair table command fixes this issue (temporary). The table has the option "checksum=1" I assume the write order of massive inserts differ and therefore the calculation of the checksum is different. |
| Comments |
| Comment by Sergei Golubchik [ 2023-02-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
What does CHECKSUM TABLE ... EXTENDED show? does it match the value of CHECKSUM .., QUICK? | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marc [ 2023-02-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
got a new test case:
so in general the checksum is correct but the quick algorithm has different values. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-02-27 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
you said, checksum differs between the master and remote. Is it like above? On the master QUICK and EXTENDED have the same value, while on the remote QUICK is different and EXTENDED is the same as on the master? | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marc [ 2023-02-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
"B" is the master and "M" is the slave (shortcut comes from my machine names | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-03-30 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
what is the table structure? can you show the output of SHOW CREATE TABLE for it? | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marc [ 2023-03-30 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Master and slave have the same version: mariadb-10.5.19-1 |