This was found together with MDEV-7888, but it is a logically different bug,
so filing separately.
The parallel replication worker threads can hang in some cases with
non-transactional event groups. The symptom is that worker threads are stuck
in "waiting for prior transaction to start commit".
The problem is when record_gtid() runs at the end of the non-transactional
update. Then it needs to create its own transaction to update the
mysql.gtid_slave_pos table. This causes ha_commit_trans() to call
wakeup_subsequent_commits(). But this is wrong, it is too early.
The hang then occurs because a following transaction things the prior
non-transactional event group is already done - so it deallocates the
corresponding group_commit_orderer object. Then a following worker thread does
not get its wakeup, and the slave gets stuck.
- relates to
-
MDEV-7888
ANALYZE TABLE does wakeup_subsequent_commits(), causing wrong binlog order and parallel replication hang
-
-
Closed
{"report":{"fcp":716.7000000476837,"ttfb":152.20000004768372,"pageVisibility":"visible","entityId":50783,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"0f0c7f40-f80a-4771-bee7-0e166d96dcc3","navigationType":0,"readyForUser":828.0999999046326,"redirectCount":0,"resourceLoadedEnd":852.7000000476837,"resourceLoadedStart":157.59999990463257,"resourceTiming":[{"duration":123.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":157.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":280.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":123.30000019073486,"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":157.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":281.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":132.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":158.09999990463257,"connectEnd":158.09999990463257,"connectStart":158.09999990463257,"domainLookupEnd":158.09999990463257,"domainLookupStart":158.09999990463257,"fetchStart":158.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":158.09999990463257,"responseEnd":290.5,"responseStart":290.5,"secureConnectionStart":158.09999990463257},{"duration":159.5,"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":158.20000004768372,"connectEnd":158.20000004768372,"connectStart":158.20000004768372,"domainLookupEnd":158.20000004768372,"domainLookupStart":158.20000004768372,"fetchStart":158.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":158.20000004768372,"responseEnd":317.7000000476837,"responseStart":317.7000000476837,"secureConnectionStart":158.20000004768372},{"duration":163.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":158.5,"connectEnd":158.5,"connectStart":158.5,"domainLookupEnd":158.5,"domainLookupStart":158.5,"fetchStart":158.5,"redirectEnd":0,"redirectStart":0,"requestStart":158.5,"responseEnd":321.59999990463257,"responseStart":321.59999990463257,"secureConnectionStart":158.5},{"duration":163.39999985694885,"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":158.70000004768372,"connectEnd":158.70000004768372,"connectStart":158.70000004768372,"domainLookupEnd":158.70000004768372,"domainLookupStart":158.70000004768372,"fetchStart":158.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":158.70000004768372,"responseEnd":322.09999990463257,"responseStart":322.09999990463257,"secureConnectionStart":158.70000004768372},{"duration":163.79999995231628,"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":158.79999995231628,"connectEnd":158.79999995231628,"connectStart":158.79999995231628,"domainLookupEnd":158.79999995231628,"domainLookupStart":158.79999995231628,"fetchStart":158.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":158.79999995231628,"responseEnd":322.59999990463257,"responseStart":322.59999990463257,"secureConnectionStart":158.79999995231628},{"duration":164.89999985694885,"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":159,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":159,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":323.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":163.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":159.20000004768372,"connectEnd":159.20000004768372,"connectStart":159.20000004768372,"domainLookupEnd":159.20000004768372,"domainLookupStart":159.20000004768372,"fetchStart":159.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":159.20000004768372,"responseEnd":323.09999990463257,"responseStart":323.09999990463257,"secureConnectionStart":159.20000004768372},{"duration":164.70000004768372,"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":159.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":159.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":324,"responseStart":0,"secureConnectionStart":0},{"duration":164.20000004768372,"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":159.5,"connectEnd":159.5,"connectStart":159.5,"domainLookupEnd":159.5,"domainLookupStart":159.5,"fetchStart":159.5,"redirectEnd":0,"redirectStart":0,"requestStart":159.5,"responseEnd":323.7000000476837,"responseStart":323.7000000476837,"secureConnectionStart":159.5},{"duration":435.10000014305115,"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":160.39999985694885,"connectEnd":160.39999985694885,"connectStart":160.39999985694885,"domainLookupEnd":160.39999985694885,"domainLookupStart":160.39999985694885,"fetchStart":160.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":160.39999985694885,"responseEnd":595.5,"responseStart":595.3999998569489,"secureConnectionStart":160.39999985694885},{"duration":525.5,"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":160.5,"connectEnd":160.5,"connectStart":160.5,"domainLookupEnd":160.5,"domainLookupStart":160.5,"fetchStart":160.5,"redirectEnd":0,"redirectStart":0,"requestStart":160.5,"responseEnd":686,"responseStart":686,"secureConnectionStart":160.5},{"duration":171.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":514,"connectEnd":514,"connectStart":514,"domainLookupEnd":514,"domainLookupStart":514,"fetchStart":514,"redirectEnd":0,"redirectStart":0,"requestStart":514,"responseEnd":685.2000000476837,"responseStart":685.0999999046326,"secureConnectionStart":514},{"duration":147.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":709.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":709.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":857.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":81.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":770.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":770.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":852.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":62.700000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":771.8999998569489,"connectEnd":771.8999998569489,"connectStart":771.8999998569489,"domainLookupEnd":771.8999998569489,"domainLookupStart":771.8999998569489,"fetchStart":771.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":771.8999998569489,"responseEnd":834.5999999046326,"responseStart":834.5999999046326,"secureConnectionStart":771.8999998569489},{"duration":67.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":772.5,"connectEnd":772.5,"connectStart":772.5,"domainLookupEnd":772.5,"domainLookupStart":772.5,"fetchStart":772.5,"redirectEnd":0,"redirectStart":0,"requestStart":772.5,"responseEnd":839.5999999046326,"responseStart":839.5999999046326,"secureConnectionStart":772.5}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":3,"responseStart":153,"responseEnd":155,"domLoading":156,"domInteractive":883,"domContentLoadedEventStart":883,"domContentLoadedEventEnd":925,"domComplete":1294,"loadEventStart":1294,"loadEventEnd":1296,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":859.7999999523163},{"name":"bigPipe.sidebar-id.end","time":860.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":860.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":863.3999998569489},{"name":"activityTabFullyLoaded","time":944.5}],"measures":[],"correlationId":"869a667c5f33a6","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":10,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}