Replication using GTID and MASTER_USE_GTID=current_pos easily breaks when a transaction is generated on the Slave and Replication is restarted.
It happens if the transaction generated on the Slave is the last before issuing START SLAVE,
so even after the replication was already stopped.
To recover you need to switch to slave_pos gtid mode.
Test attached.
I also noticed a non consistent numbering of GTID, but it's not related, the trx_num part of GTID for transactions generated on the Slave is increased by one in respect to trx_num of the latest GTID received from the Master.
So you can have:
1-100-1000
1-100-1001
1-100-1002
1-200-1003
1-200-1004
1-100-1003
1-100-1004
I don't know if it's on purpose, but it does not seem consistent to me, at first impression I'd make each server having its own trx numbering with no holes.
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
49d 17h 37m
|
1
|
{"report":{"fcp":857.7999999523163,"ttfb":187.39999985694885,"pageVisibility":"visible","entityId":68896,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f387d534-1d0c-4235-a30c-61cf9e43d2d0","navigationType":0,"readyForUser":932.3999998569489,"redirectCount":0,"resourceLoadedEnd":554.7000000476837,"resourceLoadedStart":192,"resourceTiming":[{"duration":46.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":192,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":238.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":51.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":192.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":243.5,"responseStart":0,"secureConnectionStart":0},{"duration":245.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/b09d0d077992e4331b5f9ec0d3ec448c-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":192.29999995231628,"connectEnd":192.29999995231628,"connectStart":192.29999995231628,"domainLookupEnd":192.29999995231628,"domainLookupStart":192.29999995231628,"fetchStart":192.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":244.39999985694885,"responseEnd":438.09999990463257,"responseStart":261.7999999523163,"secureConnectionStart":192.29999995231628},{"duration":362.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/b47ab3df14096803b180217eb8482517-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":192.39999985694885,"connectEnd":192.39999985694885,"connectStart":192.39999985694885,"domainLookupEnd":192.39999985694885,"domainLookupStart":192.39999985694885,"fetchStart":192.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":245.09999990463257,"responseEnd":554.7000000476837,"responseStart":278.2000000476837,"secureConnectionStart":192.39999985694885},{"duration":84,"initiatorType":"script","name":"https://jira.mariadb.org/s/6c569cbf8087ab04e40d0bef98627457-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":192.5,"connectEnd":192.5,"connectStart":192.5,"domainLookupEnd":192.5,"domainLookupStart":192.5,"fetchStart":192.5,"redirectEnd":0,"redirectStart":0,"requestStart":245.29999995231628,"responseEnd":276.5,"responseStart":273,"secureConnectionStart":192.5},{"duration":83.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":192.59999990463257,"connectEnd":192.59999990463257,"connectStart":192.59999990463257,"domainLookupEnd":192.59999990463257,"domainLookupStart":192.59999990463257,"fetchStart":192.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":245.59999990463257,"responseEnd":276,"responseStart":271.5,"secureConnectionStart":192.59999990463257},{"duration":82,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":192.70000004768372,"connectEnd":192.70000004768372,"connectStart":192.70000004768372,"domainLookupEnd":192.70000004768372,"domainLookupStart":192.70000004768372,"fetchStart":192.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":245.70000004768372,"responseEnd":274.7000000476837,"responseStart":270.5,"secureConnectionStart":192.70000004768372},{"duration":52,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":192.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":244.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":82.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":192.89999985694885,"connectEnd":192.89999985694885,"connectStart":192.89999985694885,"domainLookupEnd":192.89999985694885,"domainLookupStart":192.89999985694885,"fetchStart":192.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":247.5,"responseEnd":275.7000000476837,"responseStart":271.09999990463257,"secureConnectionStart":192.89999985694885},{"duration":52.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":193,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":245.5,"responseStart":0,"secureConnectionStart":0},{"duration":83.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":193.09999990463257,"connectEnd":193.09999990463257,"connectStart":193.09999990463257,"domainLookupEnd":193.09999990463257,"domainLookupStart":193.09999990463257,"fetchStart":193.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":248.29999995231628,"responseEnd":276.7999999523163,"responseStart":273.5,"secureConnectionStart":193.09999990463257},{"duration":335,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":199.29999995231628,"connectEnd":199.29999995231628,"connectStart":199.29999995231628,"domainLookupEnd":199.29999995231628,"domainLookupStart":199.29999995231628,"fetchStart":199.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":325.89999985694885,"responseEnd":534.2999999523163,"responseStart":532.0999999046326,"secureConnectionStart":199.29999995231628},{"duration":339.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":199.5,"connectEnd":199.5,"connectStart":199.5,"domainLookupEnd":199.5,"domainLookupStart":199.5,"fetchStart":199.5,"redirectEnd":0,"redirectStart":0,"requestStart":425.2000000476837,"responseEnd":538.7000000476837,"responseStart":534.5999999046326,"secureConnectionStart":199.5},{"duration":157.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":567.2999999523163,"connectEnd":567.2999999523163,"connectStart":567.2999999523163,"domainLookupEnd":567.2999999523163,"domainLookupStart":567.2999999523163,"fetchStart":567.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":690.7000000476837,"responseEnd":724.3999998569489,"responseStart":723.3999998569489,"secureConnectionStart":567.2999999523163},{"duration":217.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":780.5,"connectEnd":780.5,"connectStart":780.5,"domainLookupEnd":780.5,"domainLookupStart":780.5,"fetchStart":780.5,"redirectEnd":0,"redirectStart":0,"requestStart":961.7999999523163,"responseEnd":998.0999999046326,"responseStart":996.7000000476837,"secureConnectionStart":780.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":39,"responseStart":188,"responseEnd":200,"domLoading":191,"domInteractive":982,"domContentLoadedEventStart":982,"domContentLoadedEventEnd":1027,"domComplete":1538,"loadEventStart":1538,"loadEventEnd":1539,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":965.2999999523163},{"name":"bigPipe.sidebar-id.end","time":965.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":966.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":966.7999999523163},{"name":"activityTabFullyLoaded","time":1040.5}],"measures":[],"correlationId":"f77b433ea6e995","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":27,"dbConnsTimeInMs":37,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}