[MDEV-31905] WSREP GTID MODE is inconsistent Created: 2023-08-11 Updated: 2024-01-22 Resolved: 2023-12-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Galera SST |
| Affects Version/s: | 10.5.23, 10.6.14 |
| Fix Version/s: | 10.5.24, 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Edward Stoever | Assignee: | Julius Goryavsky |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
WSREP GTID MODE is inconsistent When you create a Galera cluster with the following configuration according to documentation:
Sometimes, the nodes will stay in sync. However, if the following is done: Then, GTIDs will become inconsistent both at the domain level and at the seq_no level. This is not difficult to reproduce. |
| Comments |
| Comment by Edward Stoever [ 2023-08-23 ] | |||||||||||||||||||||||||||
|
This was tested on 10.6.14 Enterprise. | |||||||||||||||||||||||||||
| Comment by Jan Lindström [ 2023-10-10 ] | |||||||||||||||||||||||||||
|
Test case Note: reproduces with mariabackup not with rsync | |||||||||||||||||||||||||||
| Comment by Jan Lindström [ 2023-10-11 ] | |||||||||||||||||||||||||||
|
edward Does customer use mariabacup as SST method? With mariabackup I can reproduce it even at startup
| |||||||||||||||||||||||||||
| Comment by Richard Stracke [ 2023-12-12 ] | |||||||||||||||||||||||||||
|
I checked the sourcecode and I shortened the relevant parts
So domain_id will be initialized with wsrep_gtid_domain_id can be set from SST , otherwise it remain 0 wsrep_server_gtid_t stored_gtid= wsrep_get_SE_checkpoint<wsrep_server_gtid_t>(); If new cluster the domain_id will be set to IF the recovery process gives no result and new cluster flag is set,
rsync copies maybe some more files for a successful recovery or whatever
do . So I suggest to init uint wsrep_gtid_domain_id=0; // Domain id on above structure to real wsrep_gtid_domain_id defined in config file Can you check this, if this makes sense to you ? | |||||||||||||||||||||||||||
| Comment by Seppo Jaakola [ 2023-12-14 ] | |||||||||||||||||||||||||||
|
Pull request to handle domain-id inconsistency due to mariabackup SST was submitted yesterday | |||||||||||||||||||||||||||
| Comment by Seppo Jaakola [ 2023-12-14 ] | |||||||||||||||||||||||||||
|
PR is submitted here: https://github.com/MariaDB/server/pull/2932 | |||||||||||||||||||||||||||
| Comment by Julius Goryavsky [ 2023-12-23 ] | |||||||||||||||||||||||||||
|
Fix merged with head revision as https://github.com/MariaDB/server/commit/c89f769f2412202dd8d7e69b0942778c91602ec7 |