On optimistic parallel slave ALTER (Innodb) SEQUENCE passes the commit right too early to the next-to-commit transaction. It does so before its bilogging is done so that the following transaction may win race to binlog first and ALTER fail with an error like
Last_Error: Error 'An attempt was made to binlog GTID 0-1-100 which would create an out-of-order sequence number with existing GTID 0-1-101 and gtid strict mode is enabled' on query. Default database: 'test'. Query: 'alter sequence s1 restart with 1'
|
As a possible w/a, note ALTER has actually completed in the engine part (Innodb) not being able to binlog. The slave state is already past the ALTER's gtid so it's correct, nothing to do with gtid_slave_pos. If its absence in binlog is tolerable then the slave can be simply restarted. If the ALTER binlogging matters, then consider to re-execute ALTER, preserving its gitd course, from a slave local connection. After replaying from local slave connection ALTER (and its GTID) will end up logged out-of-order though (so gtid strict mode replication from this slave to elsewhere won't work out at its point).
{"report":{"fcp":745.5,"ttfb":128.69999992847443,"pageVisibility":"visible","entityId":121159,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"487e1da9-df0c-4d0f-8f15-3da623d529f8","navigationType":0,"readyForUser":798.6000000238419,"redirectCount":0,"resourceLoadedEnd":728.6999999284744,"resourceLoadedStart":133.89999997615814,"resourceTiming":[{"duration":137.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":133.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":133.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":271.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":137.19999992847443,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":134.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":134.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":271.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":146.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":134.19999992847443,"connectEnd":134.19999992847443,"connectStart":134.19999992847443,"domainLookupEnd":134.19999992847443,"domainLookupStart":134.19999992847443,"fetchStart":134.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":134.19999992847443,"responseEnd":280.2999999523163,"responseStart":280.2999999523163,"secureConnectionStart":134.19999992847443},{"duration":215.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":134.29999995231628,"connectEnd":134.29999995231628,"connectStart":134.29999995231628,"domainLookupEnd":134.29999995231628,"domainLookupStart":134.29999995231628,"fetchStart":134.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":134.29999995231628,"responseEnd":349.5,"responseStart":349.5,"secureConnectionStart":134.29999995231628},{"duration":218.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":134.39999997615814,"connectEnd":134.39999997615814,"connectStart":134.39999997615814,"domainLookupEnd":134.39999997615814,"domainLookupStart":134.39999997615814,"fetchStart":134.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":134.39999997615814,"responseEnd":353.2999999523163,"responseStart":353.2999999523163,"secureConnectionStart":134.39999997615814},{"duration":219.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":134.5,"connectEnd":134.5,"connectStart":134.5,"domainLookupEnd":134.5,"domainLookupStart":134.5,"fetchStart":134.5,"redirectEnd":0,"redirectStart":0,"requestStart":134.5,"responseEnd":353.89999997615814,"responseStart":353.89999997615814,"secureConnectionStart":134.5},{"duration":219.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":134.5,"connectEnd":134.5,"connectStart":134.5,"domainLookupEnd":134.5,"domainLookupStart":134.5,"fetchStart":134.5,"redirectEnd":0,"redirectStart":0,"requestStart":134.5,"responseEnd":354.2999999523163,"responseStart":354.2999999523163,"secureConnectionStart":134.5},{"duration":220,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":134.69999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":134.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":354.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":220,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":134.69999992847443,"connectEnd":134.69999992847443,"connectStart":134.69999992847443,"domainLookupEnd":134.69999992847443,"domainLookupStart":134.69999992847443,"fetchStart":134.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":134.69999992847443,"responseEnd":354.6999999284744,"responseStart":354.6999999284744,"secureConnectionStart":134.69999992847443},{"duration":220.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":134.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":134.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":355.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":220.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":135,"connectEnd":135,"connectStart":135,"domainLookupEnd":135,"domainLookupStart":135,"fetchStart":135,"redirectEnd":0,"redirectStart":0,"requestStart":135,"responseEnd":355.39999997615814,"responseStart":355.39999997615814,"secureConnectionStart":135},{"duration":402.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":135.69999992847443,"connectEnd":135.69999992847443,"connectStart":135.69999992847443,"domainLookupEnd":135.69999992847443,"domainLookupStart":135.69999992847443,"fetchStart":135.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":135.69999992847443,"responseEnd":538.6000000238419,"responseStart":538.6000000238419,"secureConnectionStart":135.69999992847443},{"duration":593,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":135.69999992847443,"connectEnd":135.69999992847443,"connectStart":135.69999992847443,"domainLookupEnd":135.69999992847443,"domainLookupStart":135.69999992847443,"fetchStart":135.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":135.69999992847443,"responseEnd":728.6999999284744,"responseStart":728.6999999284744,"secureConnectionStart":135.69999992847443},{"duration":192.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":495.89999997615814,"connectEnd":495.89999997615814,"connectStart":495.89999997615814,"domainLookupEnd":495.89999997615814,"domainLookupStart":495.89999997615814,"fetchStart":495.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":495.89999997615814,"responseEnd":688.6999999284744,"responseStart":688.6999999284744,"secureConnectionStart":495.89999997615814}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":9,"responseStart":129,"responseEnd":131,"domLoading":132,"domInteractive":846,"domContentLoadedEventStart":846,"domContentLoadedEventEnd":886,"domComplete":1653,"loadEventStart":1653,"loadEventEnd":1655,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":827},{"name":"bigPipe.sidebar-id.end","time":827.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":827.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.end","time":830.2999999523163},{"name":"activityTabFullyLoaded","time":895.1000000238419}],"measures":[],"correlationId":"4981a1c1b3993d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}