[MDEV-26240] In Galera Cluster, when init gtid does not get domain_id and server_id from mariadb.cnf Created: 2021-07-26 Updated: 2021-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | derry | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
linux |
||
| Issue Links: |
|
||||||||
| Description |
|
1. sql\wsrep_mysqld.cc void wsrep_init_gtid() else { stored_gtid.server_id= global_system_variables.server_id; stored_gtid.seqno= 0; } } 2. sql\wsrep_xid.cc ; if (!wsrep_get_SE_checkpoint_common(xid)) { return gtid; }if (xid.data[WSREP_XID_VERSION_OFFSET] == WSREP_XID_VERSION_3) { memcpy(>id, &xid.data[WSREP_XID_RPL_GTID_OFFSET], sizeof(wsrep_server_gtid_t)); } return gtid; 3. In function wsrep_get_SE_checkpoint, domain_id and server_id were from engine, and were set to gtid. 4. Backup data from cluster1 with mariabackup, and then restore data to cluster2. So the GTID domain_id and server_id become same. |
| Comments |
| Comment by Richard Stracke [ 2021-11-22 ] |
|
Should be fixed with |
| Comment by derry [ 2021-11-28 ] |
|
It seems the same issue. |