MDEV-16809 introduced the configuration parameter innodb_log_optimize_ddl (ON by default, to keep existing behaviour). The intention was that with the non-default setting innodb_log_optimize_ddl=OFF, all changes to persistent data pages would be redo-logged.
Unfortunately, while the PageBulk code appears to write redo log for many operations, both in PageBulk::insert() and PageBulk::finish(), the modifications of the sparse page directory and the linked list of records are not being redo-logged.
Furthermore, PageBulk::init() is bypassing some checks by setting a flag buf_block_t::skip_flush_check, which should not exist at all. There should be no special logic for flushing ‘incomplete’ pages, and all changes to persistent pages should be redo-logged if innodb_log_optimize_ddl=OFF.
As far as I can tell, there should be no impact on InnoDB crash recovery due to this. The omitted redo logging should only affect scenarios where mariabackup --backup is run concurrently with a table-rebuilding or index-creating ALTER TABLE…ALGORITHM=INPLACE operation.
{"report":{"fcp":1903.6999998092651,"ttfb":288.09999990463257,"pageVisibility":"visible","entityId":79001,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a3d85d8e-069e-42be-bc7a-55ebf86ec751","navigationType":0,"readyForUser":2010.7999997138977,"redirectCount":0,"resourceLoadedEnd":1641.7999997138977,"resourceLoadedStart":383,"resourceTiming":[{"duration":128.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":383,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":383,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":511.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":128.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":383.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":383.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":511.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":860.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":383.5,"connectEnd":383.5,"connectStart":383.5,"domainLookupEnd":383.5,"domainLookupStart":383.5,"fetchStart":383.5,"redirectEnd":0,"redirectStart":0,"requestStart":545.7999997138977,"responseEnd":1244.1999998092651,"responseStart":603.9000000953674,"secureConnectionStart":383.5},{"duration":1160.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":383.69999980926514,"connectEnd":383.69999980926514,"connectStart":383.69999980926514,"domainLookupEnd":383.69999980926514,"domainLookupStart":383.69999980926514,"fetchStart":383.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":546,"responseEnd":1544.1999998092651,"responseStart":605,"secureConnectionStart":383.69999980926514},{"duration":246.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":384,"connectEnd":384,"connectStart":384,"domainLookupEnd":384,"domainLookupStart":384,"fetchStart":384,"redirectEnd":0,"redirectStart":0,"requestStart":547.4000000953674,"responseEnd":630.0999999046326,"responseStart":609.1999998092651,"secureConnectionStart":384},{"duration":247.09999990463257,"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":384.09999990463257,"connectEnd":384.09999990463257,"connectStart":384.09999990463257,"domainLookupEnd":384.09999990463257,"domainLookupStart":384.09999990463257,"fetchStart":384.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":548.0999999046326,"responseEnd":631.1999998092651,"responseStart":612,"secureConnectionStart":384.09999990463257},{"duration":247.09999990463257,"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":384.40000009536743,"connectEnd":384.40000009536743,"connectStart":384.40000009536743,"domainLookupEnd":384.40000009536743,"domainLookupStart":384.40000009536743,"fetchStart":384.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":561.5999999046326,"responseEnd":631.5,"responseStart":613.9000000953674,"secureConnectionStart":384.40000009536743},{"duration":131.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":384.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":384.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":516.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":247,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":384.69999980926514,"connectEnd":384.69999980926514,"connectStart":384.69999980926514,"domainLookupEnd":384.69999980926514,"domainLookupStart":384.69999980926514,"fetchStart":384.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":561.7999997138977,"responseEnd":631.6999998092651,"responseStart":614.9000000953674,"secureConnectionStart":384.69999980926514},{"duration":136,"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":385,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":385,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":521,"responseStart":0,"secureConnectionStart":0},{"duration":276.90000009536743,"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":385.09999990463257,"connectEnd":385.09999990463257,"connectStart":385.09999990463257,"domainLookupEnd":385.09999990463257,"domainLookupStart":385.09999990463257,"fetchStart":385.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":562,"responseEnd":662,"responseStart":628.0999999046326,"secureConnectionStart":385.09999990463257},{"duration":1255.2000002861023,"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":386.19999980926514,"connectEnd":386.19999980926514,"connectStart":386.19999980926514,"domainLookupEnd":386.19999980926514,"domainLookupStart":386.19999980926514,"fetchStart":386.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":670.2999997138977,"responseEnd":1641.4000000953674,"responseStart":1632.4000000953674,"secureConnectionStart":386.19999980926514},{"duration":1219.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":422.09999990463257,"connectEnd":422.09999990463257,"connectStart":422.09999990463257,"domainLookupEnd":422.09999990463257,"domainLookupStart":422.09999990463257,"fetchStart":422.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":809,"responseEnd":1641.7999997138977,"responseStart":1635.7999997138977,"secureConnectionStart":422.09999990463257},{"duration":191.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1463.4000000953674,"connectEnd":1463.4000000953674,"connectStart":1463.4000000953674,"domainLookupEnd":1463.4000000953674,"domainLookupStart":1463.4000000953674,"fetchStart":1463.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1619.7999997138977,"responseEnd":1654.9000000953674,"responseStart":1653.9000000953674,"secureConnectionStart":1463.4000000953674},{"duration":82,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1804.0999999046326,"connectEnd":1804.0999999046326,"connectStart":1804.0999999046326,"domainLookupEnd":1804.0999999046326,"domainLookupStart":1804.0999999046326,"fetchStart":1804.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1841,"responseEnd":1886.0999999046326,"responseStart":1885.4000000953674,"secureConnectionStart":1804.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":110,"responseStart":288,"responseEnd":426,"domLoading":328,"domInteractive":2162,"domContentLoadedEventStart":2162,"domContentLoadedEventEnd":2217,"domComplete":2529,"loadEventStart":2529,"loadEventEnd":2529,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2085.9000000953674},{"name":"bigPipe.sidebar-id.end","time":2086.699999809265},{"name":"bigPipe.activity-panel-pipe-id.start","time":2086.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":2089.199999809265},{"name":"activityTabFullyLoaded","time":2235.699999809265}],"measures":[],"correlationId":"a2c92ddaa48ea5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":12,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The implementation of the new physical-only redo log record format in
MDEV-12353will have to address this. My current plan is to deprecate and ignore the parameter innodb_log_optimize_ddl, and to always write redo log for modifying persistent data pages.