Type:
Task
Priority:
Major
Resolution:
Fixed
Component/s:
None
MDEV-232 introduces commit checkpoints in the storage engines. Such
checkpoints can be performed fully asynchronous, but current implementation
in InnoDB/XtraDB is mostly synchronous.
This task is about improving this to a fully asynchronous implementation.
In addition I want to extend the server layer binlog checkpointing so that it
does the actual writing of checkpoint event to the binlog in a separate
background thread:
1. The commit_checkpoint_notify_ha() call may come from arbitrary thread in
the storage engine which may not be prepared to have lengthy binlog sync or
other stuff done in its own thread context.
2. I need to use debug_sync in the test cases to make them deterministic, but
this requires THD, and eg. innodb background log flush does not have THD.
3. Such background binlog thread will later be useful to do binlog
pre-allocation or rotation in the background, to further improve performance
and reduce stalls.
{"report":{"fcp":681.7999999523163,"ttfb":159.29999995231628,"pageVisibility":"visible","entityId":14117,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"19349745-f56f-41dc-85cc-b82a23e6116f","navigationType":0,"readyForUser":749,"redirectCount":0,"resourceLoadedEnd":762.3999999761581,"resourceLoadedStart":164.5,"resourceTiming":[{"duration":6.399999976158142,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":164.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":170.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":6.600000023841858,"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":164.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":171.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":59.299999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":164.89999997615814,"connectEnd":164.89999997615814,"connectStart":164.89999997615814,"domainLookupEnd":164.89999997615814,"domainLookupStart":164.89999997615814,"fetchStart":164.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":164.89999997615814,"responseEnd":224.19999992847443,"responseStart":224.19999992847443,"secureConnectionStart":164.89999997615814},{"duration":162.89999997615814,"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":165,"connectEnd":165,"connectStart":165,"domainLookupEnd":165,"domainLookupStart":165,"fetchStart":165,"redirectEnd":0,"redirectStart":0,"requestStart":165,"responseEnd":327.89999997615814,"responseStart":327.89999997615814,"secureConnectionStart":165},{"duration":166.5,"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":165.09999990463257,"connectEnd":165.09999990463257,"connectStart":165.09999990463257,"domainLookupEnd":165.09999990463257,"domainLookupStart":165.09999990463257,"fetchStart":165.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":165.09999990463257,"responseEnd":331.59999990463257,"responseStart":331.59999990463257,"secureConnectionStart":165.09999990463257},{"duration":166.80000007152557,"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":165.19999992847443,"connectEnd":165.19999992847443,"connectStart":165.19999992847443,"domainLookupEnd":165.19999992847443,"domainLookupStart":165.19999992847443,"fetchStart":165.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":165.19999992847443,"responseEnd":332,"responseStart":332,"secureConnectionStart":165.19999992847443},{"duration":167,"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":165.29999995231628,"connectEnd":165.29999995231628,"connectStart":165.29999995231628,"domainLookupEnd":165.29999995231628,"domainLookupStart":165.29999995231628,"fetchStart":165.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":165.29999995231628,"responseEnd":332.2999999523163,"responseStart":332.2999999523163,"secureConnectionStart":165.29999995231628},{"duration":167.29999995231628,"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":165.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":332.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":167.19999992847443,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":165.5,"connectEnd":165.5,"connectStart":165.5,"domainLookupEnd":165.5,"domainLookupStart":165.5,"fetchStart":165.5,"redirectEnd":0,"redirectStart":0,"requestStart":165.5,"responseEnd":332.6999999284744,"responseStart":332.6999999284744,"secureConnectionStart":165.5},{"duration":167.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":165.69999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":165.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":333.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":167.5,"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":165.79999995231628,"connectEnd":165.79999995231628,"connectStart":165.79999995231628,"domainLookupEnd":165.79999995231628,"domainLookupStart":165.79999995231628,"fetchStart":165.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":165.79999995231628,"responseEnd":333.2999999523163,"responseStart":333.2999999523163,"secureConnectionStart":165.79999995231628},{"duration":297.2000000476837,"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":166.69999992847443,"connectEnd":166.69999992847443,"connectStart":166.69999992847443,"domainLookupEnd":166.69999992847443,"domainLookupStart":166.69999992847443,"fetchStart":166.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":166.69999992847443,"responseEnd":463.89999997615814,"responseStart":463.89999997615814,"secureConnectionStart":166.69999992847443},{"duration":424.7000000476837,"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":166.69999992847443,"connectEnd":166.69999992847443,"connectStart":166.69999992847443,"domainLookupEnd":166.69999992847443,"domainLookupStart":166.69999992847443,"fetchStart":166.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":166.69999992847443,"responseEnd":591.3999999761581,"responseStart":591.3999999761581,"secureConnectionStart":166.69999992847443},{"duration":88.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":375.89999997615814,"connectEnd":375.89999997615814,"connectStart":375.89999997615814,"domainLookupEnd":375.89999997615814,"domainLookupStart":375.89999997615814,"fetchStart":375.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":375.89999997615814,"responseEnd":464.1999999284744,"responseStart":464.1999999284744,"secureConnectionStart":375.89999997615814},{"duration":3.100000023841858,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":590.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":590.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":593.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":165.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":591.3999999761581,"connectEnd":591.3999999761581,"connectStart":591.3999999761581,"domainLookupEnd":591.3999999761581,"domainLookupStart":591.3999999761581,"fetchStart":591.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":591.3999999761581,"responseEnd":757,"responseStart":757,"secureConnectionStart":591.3999999761581},{"duration":170.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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","startTime":591.8999999761581,"connectEnd":591.8999999761581,"connectStart":591.8999999761581,"domainLookupEnd":591.8999999761581,"domainLookupStart":591.8999999761581,"fetchStart":591.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":591.8999999761581,"responseEnd":762.3999999761581,"responseStart":762.3999999761581,"secureConnectionStart":591.8999999761581},{"duration":87.60000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":675.6999999284744,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":675.6999999284744,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":763.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":65.60000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":698.0999999046326,"connectEnd":698.0999999046326,"connectStart":698.0999999046326,"domainLookupEnd":698.0999999046326,"domainLookupStart":698.0999999046326,"fetchStart":698.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":698.0999999046326,"responseEnd":763.6999999284744,"responseStart":763.6999999284744,"secureConnectionStart":698.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":4,"responseStart":159,"responseEnd":161,"domLoading":163,"domInteractive":818,"domContentLoadedEventStart":818,"domContentLoadedEventEnd":856,"domComplete":1329,"loadEventStart":1329,"loadEventEnd":1330,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":781.7999999523163},{"name":"bigPipe.sidebar-id.end","time":782.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":782.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":785.0999999046326},{"name":"activityTabFullyLoaded","time":862.2999999523163}],"measures":[],"correlationId":"cec04d94d22229","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}