RESET MASTER resets gtid_binlog_pos, but not gtid_slave_pos. This means that gtid_current_pos can still contain GTIDs after RESET MASTER. This can result in some confusing behavior. See MDEV-17156 and MDEV-17853.
To try to make this more clear, what if RESET MASTER threw a warning if gtid_slave_pos was set? Maybe something like:
RESET MASTER successfully reset gtid_binlog_pos, but gtid_slave_pos is non-empty. If you want to reset system's GTID state, then you must also manually reset gtid_slave_pos with "SET GLOBAL gtid_slave_pos = ''"
Attachments
Issue Links
relates to
MDEV-17156Local transactions on a Slave don't update GTID's gtid_current_pos after RESET MASTER on Slave (master_use_gtid value is not relevant)
GeoffMontee: To discuss with you, gtid_slave_pos represents the slave state, which may also be binlog-less.
As to the effect on gtid_current_pos, I think we should go to deprecate gtid_current_pos instead as it made
a nuisance of itself for so many times.
Andrei Elkin
added a comment - - edited GeoffMontee : To discuss with you, gtid_slave_pos represents the slave state, which may also be binlog-less.
As to the effect on gtid_current_pos , I think we should go to deprecate gtid_current_pos instead as it made
a nuisance of itself for so many times.
As to the effect on gtid_current_pos, I think we should go to deprecate gtid_current_pos instead as it made a nuisance of itself for so many times.
Why would you want to deprecate the gtid_current_pos system variable? In my opinion, it is useful. It tells you the complete GTID position of the node when both the local GTID position and the slave GTID position are combined. This is a very useful system variable.
I understand why you would want to deprecate CHANGE MASTER TO ... MASTER_USE_GTID=current_pos. I have no issue with that. However, I think the gtid_current_pos system variable is useful, even if CHANGE MASTER TO ... MASTER_USE_GTID=current_pos is unsupported.
Geoff Montee (Inactive)
added a comment - Hi Elkin ,
As to the effect on gtid_current_pos, I think we should go to deprecate gtid_current_pos instead as it made a nuisance of itself for so many times.
Why would you want to deprecate the gtid_current_pos system variable? In my opinion, it is useful. It tells you the complete GTID position of the node when both the local GTID position and the slave GTID position are combined. This is a very useful system variable.
I understand why you would want to deprecate CHANGE MASTER TO ... MASTER_USE_GTID=current_pos . I have no issue with that. However, I think the gtid_current_pos system variable is useful, even if CHANGE MASTER TO ... MASTER_USE_GTID=current_pos is unsupported.
GeoffMontee Sorry, I indeed meant MASTER_USE_GTID=current_pos. You may know better about user satisfaction of @@global.gtid_current_pos. And its definition is consistent. Thank you for correcting me!
Andrei Elkin
added a comment - - edited GeoffMontee Sorry, I indeed meant MASTER_USE_GTID=current_pos . You may know better about user satisfaction of
@@global.gtid_current_pos . And its definition is consistent. Thank you for correcting me!
People
Andrei Elkin
Geoff Montee (Inactive)
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":889,"ttfb":290.89999985694885,"pageVisibility":"visible","entityId":71150,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f3485c44-f62d-4198-81f4-07ccf89bb8d4","navigationType":0,"readyForUser":942.2999999523163,"redirectCount":0,"resourceLoadedEnd":452.2000000476837,"resourceLoadedStart":296,"resourceTiming":[{"duration":8.599999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":296,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":296,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":304.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":8.599999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":296.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":296.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":304.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":147.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":296.39999985694885,"connectEnd":296.39999985694885,"connectStart":296.39999985694885,"domainLookupEnd":296.39999985694885,"domainLookupStart":296.39999985694885,"fetchStart":296.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":386.7999999523163,"responseEnd":444.2000000476837,"responseStart":402,"secureConnectionStart":296.39999985694885},{"duration":155.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":296.59999990463257,"connectEnd":296.59999990463257,"connectStart":296.59999990463257,"domainLookupEnd":296.59999990463257,"domainLookupStart":296.59999990463257,"fetchStart":296.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":385.5,"responseEnd":452.2000000476837,"responseStart":402.89999985694885,"secureConnectionStart":296.59999990463257},{"duration":113.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":296.7999999523163,"connectEnd":296.7999999523163,"connectStart":296.7999999523163,"domainLookupEnd":296.7999999523163,"domainLookupStart":296.7999999523163,"fetchStart":296.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":386.2999999523163,"responseEnd":409.89999985694885,"responseStart":409.39999985694885,"secureConnectionStart":296.7999999523163},{"duration":115.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":296.89999985694885,"connectEnd":394.89999985694885,"connectStart":394.89999985694885,"domainLookupEnd":394.89999985694885,"domainLookupStart":394.89999985694885,"fetchStart":296.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":395.09999990463257,"responseEnd":412.2000000476837,"responseStart":410.7000000476837,"secureConnectionStart":394.89999985694885},{"duration":104.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":297,"connectEnd":297,"connectStart":297,"domainLookupEnd":297,"domainLookupStart":297,"fetchStart":297,"redirectEnd":0,"redirectStart":0,"requestStart":385.5,"responseEnd":401.89999985694885,"responseStart":401.2999999523163,"secureConnectionStart":297},{"duration":10.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":297.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":308,"responseStart":0,"secureConnectionStart":0},{"duration":135.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":297.39999985694885,"connectEnd":297.39999985694885,"connectStart":297.39999985694885,"domainLookupEnd":297.39999985694885,"domainLookupStart":297.39999985694885,"fetchStart":297.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":395.89999985694885,"responseEnd":432.7999999523163,"responseStart":431.7000000476837,"secureConnectionStart":297.39999985694885},{"duration":11.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":297.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":117,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":297.7000000476837,"connectEnd":297.7000000476837,"connectStart":297.7000000476837,"domainLookupEnd":297.7000000476837,"domainLookupStart":297.7000000476837,"fetchStart":297.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":396.59999990463257,"responseEnd":414.7000000476837,"responseStart":412.59999990463257,"secureConnectionStart":297.7000000476837},{"duration":105.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":307.5,"connectEnd":307.5,"connectStart":307.5,"domainLookupEnd":307.5,"domainLookupStart":307.5,"fetchStart":307.5,"redirectEnd":0,"redirectStart":0,"requestStart":396.2999999523163,"responseEnd":412.59999990463257,"responseStart":411.2000000476837,"secureConnectionStart":307.5},{"duration":109.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":307.7999999523163,"connectEnd":307.7999999523163,"connectStart":307.7999999523163,"domainLookupEnd":307.7999999523163,"domainLookupStart":307.7999999523163,"fetchStart":307.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":396.39999985694885,"responseEnd":417.2000000476837,"responseStart":416.39999985694885,"secureConnectionStart":307.7999999523163},{"duration":157.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":655.2000000476837,"connectEnd":655.2000000476837,"connectStart":655.2000000476837,"domainLookupEnd":655.2000000476837,"domainLookupStart":655.2000000476837,"fetchStart":655.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":776.2999999523163,"responseEnd":813,"responseStart":812.3999998569489,"secureConnectionStart":655.2000000476837},{"duration":110.29999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":863.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":863.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":974,"responseStart":0,"secureConnectionStart":0},{"duration":111.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":878.5999999046326,"connectEnd":878.5999999046326,"connectStart":878.5999999046326,"domainLookupEnd":878.5999999046326,"domainLookupStart":878.5999999046326,"fetchStart":878.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":950,"responseEnd":989.7000000476837,"responseStart":988.7000000476837,"secureConnectionStart":878.5999999046326}],"fetchStart":0,"domainLookupStart":22,"domainLookupEnd":93,"connectStart":93,"connectEnd":116,"secureConnectionStart":101,"requestStart":117,"responseStart":290,"responseEnd":307,"domLoading":294,"domInteractive":1000,"domContentLoadedEventStart":1000,"domContentLoadedEventEnd":1041,"domComplete":1113,"loadEventStart":1113,"loadEventEnd":1113,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":976.0999999046326},{"name":"bigPipe.sidebar-id.end","time":976.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":977},{"name":"bigPipe.activity-panel-pipe-id.end","time":978.2999999523163},{"name":"activityTabFullyLoaded","time":1058.7000000476837}],"measures":[],"correlationId":"dd285dd2bd2680","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":17,"dbConnsTimeInMs":27,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
GeoffMontee: To discuss with you, gtid_slave_pos represents the slave state, which may also be binlog-less.
As to the effect on gtid_current_pos, I think we should go to deprecate gtid_current_pos instead as it made
a nuisance of itself for so many times.