[MDEV-17368] RESET MASTER doesn't completely reset gtid_current_pos Created: 2018-10-03 Updated: 2020-08-25 Resolved: 2018-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.1.34 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Andrei Elkin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | binlog, gtid | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
RESET MASTER mostly resets gtid_current_pos, but it doesn't seem to reset it entirely:
I don't know where this leftover GTID is from and why it wasn't deleted. It obviously came from another server, since this specific server does not have server_id=2:
This server is not currently a slave and it is not currently in a Galera Cluster, so it's not like it could have replicated this transaction after I executed RESET MASTER:
It seems as though there is a bug in RESET MASTER that prevents it from completely resetting gtid_current_pos. |
| Comments |
| Comment by Geoff Montee (Inactive) [ 2018-10-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
What's also interesting is that no matter how many times I execute RESET MASTER, this GTID doesn't go away:
And it even seems possible to make gtid_current_pos and gtid_binlog_pos get out of sync:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2018-10-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I figured it out. mysql.gtid_slave_pos had some GTIDs leftover from when the server was a slave. I fixed it with:
|