Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.3(EOL) , 10.4(EOL) , 10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL)
If the workers of a parallel replica are busy (potentially with long queues), but the SQL thread has no events left to distribute (so it goes idle). Then the next event that comes from the primary will update LMT with its timestamp, even if the workers may be quite far behind.
Proposed fix is for the SQL thread to additionally check if there are uncommitted events. That is, we should add an atomic counter (displayable as a new system status variable), which the SQL thread increments on reads, and that the workers decrement on commits. last_master_timestamp should only be updated by the SQL thread with the MDEV-29639 logic if this counter is 0.
{"report":{"fcp":1093.3999996185303,"ttfb":387.1000003814697,"pageVisibility":"visible","entityId":119103,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"7bbf0314-7a19-4fbe-b823-572551a9966e","navigationType":0,"readyForUser":1185.5,"redirectCount":0,"resourceLoadedEnd":1325.1000003814697,"resourceLoadedStart":396.30000019073486,"resourceTiming":[{"duration":229.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":396.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":396.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":625.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":229.5,"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":396.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":396.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":626,"responseStart":0,"secureConnectionStart":0},{"duration":238.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":396.69999980926514,"connectEnd":396.69999980926514,"connectStart":396.69999980926514,"domainLookupEnd":396.69999980926514,"domainLookupStart":396.69999980926514,"fetchStart":396.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":396.69999980926514,"responseEnd":635.3999996185303,"responseStart":635.3999996185303,"secureConnectionStart":396.69999980926514},{"duration":288.5999994277954,"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":396.80000019073486,"connectEnd":396.80000019073486,"connectStart":396.80000019073486,"domainLookupEnd":396.80000019073486,"domainLookupStart":396.80000019073486,"fetchStart":396.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":396.80000019073486,"responseEnd":685.3999996185303,"responseStart":685.3999996185303,"secureConnectionStart":396.80000019073486},{"duration":292.19999980926514,"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":397,"connectEnd":397,"connectStart":397,"domainLookupEnd":397,"domainLookupStart":397,"fetchStart":397,"redirectEnd":0,"redirectStart":0,"requestStart":397,"responseEnd":689.1999998092651,"responseStart":689.1999998092651,"secureConnectionStart":397},{"duration":292.3999996185303,"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":397.30000019073486,"connectEnd":397.30000019073486,"connectStart":397.30000019073486,"domainLookupEnd":397.30000019073486,"domainLookupStart":397.30000019073486,"fetchStart":397.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":397.30000019073486,"responseEnd":689.6999998092651,"responseStart":689.6999998092651,"secureConnectionStart":397.30000019073486},{"duration":292.6000003814697,"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":397.5,"connectEnd":397.5,"connectStart":397.5,"domainLookupEnd":397.5,"domainLookupStart":397.5,"fetchStart":397.5,"redirectEnd":0,"redirectStart":0,"requestStart":397.5,"responseEnd":690.1000003814697,"responseStart":690.1000003814697,"secureConnectionStart":397.5},{"duration":379.6000003814697,"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":397.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":397.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":777.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":292.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":397.8999996185303,"connectEnd":397.8999996185303,"connectStart":397.8999996185303,"domainLookupEnd":397.8999996185303,"domainLookupStart":397.8999996185303,"fetchStart":397.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":397.8999996185303,"responseEnd":690.5,"responseStart":690.5,"secureConnectionStart":397.8999996185303},{"duration":379.3999996185303,"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":398.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":398.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":777.5,"responseStart":0,"secureConnectionStart":0},{"duration":293,"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":398.19999980926514,"connectEnd":398.19999980926514,"connectStart":398.19999980926514,"domainLookupEnd":398.19999980926514,"domainLookupStart":398.19999980926514,"fetchStart":398.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":398.19999980926514,"responseEnd":691.1999998092651,"responseStart":691.1999998092651,"secureConnectionStart":398.19999980926514},{"duration":911.3999996185303,"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":399.6000003814697,"connectEnd":399.6000003814697,"connectStart":399.6000003814697,"domainLookupEnd":399.6000003814697,"domainLookupStart":399.6000003814697,"fetchStart":399.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":399.6000003814697,"responseEnd":1311,"responseStart":1311,"secureConnectionStart":399.6000003814697},{"duration":911.6999998092651,"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":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":1311.3999996185303,"responseStart":1311.3999996185303,"secureConnectionStart":399.69999980926514},{"duration":235.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":788.6000003814697,"connectEnd":788.6000003814697,"connectStart":788.6000003814697,"domainLookupEnd":788.6000003814697,"domainLookupStart":788.6000003814697,"fetchStart":788.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":788.6000003814697,"responseEnd":1024.1000003814697,"responseStart":1024.1000003814697,"secureConnectionStart":788.6000003814697},{"duration":265.0999994277954,"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":1047.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1047.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1312.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":266.0999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1047.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1047.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1313.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":268.8999996185303,"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":1048.5,"connectEnd":1048.5,"connectStart":1048.5,"domainLookupEnd":1048.5,"domainLookupStart":1048.5,"fetchStart":1048.5,"redirectEnd":0,"redirectStart":0,"requestStart":1048.5,"responseEnd":1317.3999996185303,"responseStart":1317.3999996185303,"secureConnectionStart":1048.5},{"duration":274.80000019073486,"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":1049,"connectEnd":1049,"connectStart":1049,"domainLookupEnd":1049,"domainLookupStart":1049,"fetchStart":1049,"redirectEnd":0,"redirectStart":0,"requestStart":1049,"responseEnd":1323.8000001907349,"responseStart":1323.8000001907349,"secureConnectionStart":1049},{"duration":275.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1049.3000001907349,"connectEnd":1049.3000001907349,"connectStart":1049.3000001907349,"domainLookupEnd":1049.3000001907349,"domainLookupStart":1049.3000001907349,"fetchStart":1049.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1049.3000001907349,"responseEnd":1325.1000003814697,"responseStart":1325.1000003814697,"secureConnectionStart":1049.3000001907349},{"duration":329.1000003814697,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1087.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1087.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1416.3000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":217,"responseStart":387,"responseEnd":391,"domLoading":394,"domInteractive":1333,"domContentLoadedEventStart":1333,"domContentLoadedEventEnd":1373,"domComplete":1902,"loadEventStart":1902,"loadEventEnd":1903,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1321.6000003814697},{"name":"bigPipe.sidebar-id.end","time":1322.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1322.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1325.1000003814697},{"name":"activityTabFullyLoaded","time":1422.1999998092651}],"measures":[],"correlationId":"216b0b83cebe99","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":18,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}