Type:
Task
Priority:
Critical
Resolution:
Fixed
When run after master server crash --tc-heuristic-recover=rollback produces inconsistent server state with binlog still containing transactions that were rolled back by the option.
Such way recovered server may not be used for replication. E.g when such way recovered
ex-master is demoted into slave its binlog state needs further correction to subtract
the rolled back transactions from its binlog status. Otherwise the "new" slave might claim
those transactions as locally present at the (gtid) master-slave connection protocol. At the same time the actual "new" master may never have seen those transactions (because they never arrived at it when it was formerly slave, due to the crash).
This issue should be fixed with refining the recovery procedure with truncating binlog to cut off the prepared rolled back transactions. The method is also known as pioneered by FB
https://percona.community/blog/2018/08/23/question-about-semi-synchronous-replication-answer-with-all-the-details/
Once a transaction reaches the binary logs it should roll forward.
{"report":{"fcp":1243.6999998092651,"ttfb":392.40000009536743,"pageVisibility":"visible","entityId":80619,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"200f9773-5645-40f1-b13e-8ad001e29b9e","navigationType":0,"readyForUser":1332.3000001907349,"redirectCount":0,"resourceLoadedEnd":1779.1999998092651,"resourceLoadedStart":398,"resourceTiming":[{"duration":190,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":398,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":398,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":588,"responseStart":0,"secureConnectionStart":0},{"duration":189.90000009536743,"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":398.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":398.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":588.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":261.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":398.59999990463257,"connectEnd":398.59999990463257,"connectStart":398.59999990463257,"domainLookupEnd":398.59999990463257,"domainLookupStart":398.59999990463257,"fetchStart":398.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":398.59999990463257,"responseEnd":659.9000000953674,"responseStart":659.9000000953674,"secureConnectionStart":398.59999990463257},{"duration":427.69999980926514,"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":398.80000019073486,"connectEnd":398.80000019073486,"connectStart":398.80000019073486,"domainLookupEnd":398.80000019073486,"domainLookupStart":398.80000019073486,"fetchStart":398.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":398.80000019073486,"responseEnd":826.5,"responseStart":826.5,"secureConnectionStart":398.80000019073486},{"duration":435.69999980926514,"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":399,"connectEnd":399,"connectStart":399,"domainLookupEnd":399,"domainLookupStart":399,"fetchStart":399,"redirectEnd":0,"redirectStart":0,"requestStart":399,"responseEnd":834.6999998092651,"responseStart":834.6999998092651,"secureConnectionStart":399},{"duration":436,"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":399.19999980926514,"connectEnd":399.19999980926514,"connectStart":399.19999980926514,"domainLookupEnd":399.19999980926514,"domainLookupStart":399.19999980926514,"fetchStart":399.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":399.19999980926514,"responseEnd":835.1999998092651,"responseStart":835.1999998092651,"secureConnectionStart":399.19999980926514},{"duration":436.19999980926514,"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":399.40000009536743,"connectEnd":399.40000009536743,"connectStart":399.40000009536743,"domainLookupEnd":399.40000009536743,"domainLookupStart":399.40000009536743,"fetchStart":399.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":399.40000009536743,"responseEnd":835.5999999046326,"responseStart":835.5999999046326,"secureConnectionStart":399.40000009536743},{"duration":440.80000019073486,"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":399.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":399.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":840.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":436.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":399.69999980926514,"connectEnd":399.69999980926514,"connectStart":399.69999980926514,"domainLookupEnd":399.69999980926514,"domainLookupStart":399.69999980926514,"fetchStart":399.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":399.69999980926514,"responseEnd":836.0999999046326,"responseStart":836.0999999046326,"secureConnectionStart":399.69999980926514},{"duration":440.69999980926514,"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":399.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":399.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":840.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":437.09999990463257,"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":400.09999990463257,"connectEnd":400.09999990463257,"connectStart":400.09999990463257,"domainLookupEnd":400.09999990463257,"domainLookupStart":400.09999990463257,"fetchStart":400.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":400.09999990463257,"responseEnd":837.1999998092651,"responseStart":837.0999999046326,"secureConnectionStart":400.09999990463257},{"duration":1377.0999999046326,"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":401.59999990463257,"connectEnd":401.59999990463257,"connectStart":401.59999990463257,"domainLookupEnd":401.59999990463257,"domainLookupStart":401.59999990463257,"fetchStart":401.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":401.59999990463257,"responseEnd":1778.6999998092651,"responseStart":1778.6999998092651,"secureConnectionStart":401.59999990463257},{"duration":1371.7999997138977,"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":407.40000009536743,"connectEnd":407.40000009536743,"connectStart":407.40000009536743,"domainLookupEnd":407.40000009536743,"domainLookupStart":407.40000009536743,"fetchStart":407.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":407.40000009536743,"responseEnd":1779.1999998092651,"responseStart":1779.1999998092651,"secureConnectionStart":407.40000009536743},{"duration":894.3000001907349,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":870.1999998092651,"connectEnd":870.1999998092651,"connectStart":870.1999998092651,"domainLookupEnd":870.1999998092651,"domainLookupStart":870.1999998092651,"fetchStart":870.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":870.1999998092651,"responseEnd":1764.5,"responseStart":1764.5,"secureConnectionStart":870.1999998092651},{"duration":590.2999997138977,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1210.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1210.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1801.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":230,"responseStart":392,"responseEnd":396,"domLoading":395,"domInteractive":1865,"domContentLoadedEventStart":1865,"domContentLoadedEventEnd":1911,"domComplete":2532,"loadEventStart":2532,"loadEventEnd":2534,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1788.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1788.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1789},{"name":"bigPipe.activity-panel-pipe-id.end","time":1791.5},{"name":"activityTabFullyLoaded","time":1919.5}],"measures":[],"correlationId":"545665b3ce61b7","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":18,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}