In the functions rtr_page_copy_rec_list_end_no_locks() and rtr_page_copy_rec_list_start_no_locks(), no redo log is being written for clearing a bit in the R-tree page:
if (rec_get_deleted_flag(cur1_rec,
|
dict_table_is_comp(index->table))) {
|
goto next;
|
} else {
|
/* We have two identical leaf records,
|
skip copying the undeleted one, and
|
unmark deleted on the current page */
|
btr_rec_set_deleted_flag(
|
cur_rec, NULL, FALSE);
|
goto next;
|
}
|
This call is also passing page_zip=NULL, which ought to cause UNIV_ZIP_DEBUG assertion failures when using ROW_FORMAT=COMPRESSED. But, that parameter was changed in MySQL 5.7.5 exactly to address the failure of a UNIV_ZIP_DEBUG check. There code change is associated with a test case change, so we have some hope that the failure is repeatable.
The purpose of this call is unclear. It was added as part of introducing InnoDB R-tree index support.
The bug was found as part of implementing a purely physical redo log record format in MDEV-12353.
- relates to
-
MDEV-12353
Efficient InnoDB redo log record format
-
-
Closed
{"report":{"fcp":1214.2999999523163,"ttfb":395.7000000476837,"pageVisibility":"visible","entityId":78933,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c2f56d16-095d-41e7-874d-df78d014fe29","navigationType":0,"readyForUser":1287,"redirectCount":0,"resourceLoadedEnd":954.7999999523163,"resourceLoadedStart":401.2000000476837,"resourceTiming":[{"duration":217.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":401.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":401.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":618.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":217,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":401.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":401.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":618.5,"responseStart":0,"secureConnectionStart":0},{"duration":413.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/b09d0d077992e4331b5f9ec0d3ec448c-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":401.5,"connectEnd":401.5,"connectStart":401.5,"domainLookupEnd":401.5,"domainLookupStart":401.5,"fetchStart":401.5,"redirectEnd":0,"redirectStart":0,"requestStart":622.5,"responseEnd":815.4000000953674,"responseStart":646.2999999523163,"secureConnectionStart":401.5},{"duration":553.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/b47ab3df14096803b180217eb8482517-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":401.7000000476837,"connectEnd":401.7000000476837,"connectStart":401.7000000476837,"domainLookupEnd":401.7000000476837,"domainLookupStart":401.7000000476837,"fetchStart":401.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":622.5999999046326,"responseEnd":954.7999999523163,"responseStart":676.9000000953674,"secureConnectionStart":401.7000000476837},{"duration":250,"initiatorType":"script","name":"https://jira.mariadb.org/s/6c569cbf8087ab04e40d0bef98627457-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":401.7999999523163,"connectEnd":401.7999999523163,"connectStart":401.7999999523163,"domainLookupEnd":401.7999999523163,"domainLookupStart":401.7999999523163,"fetchStart":401.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":622.7999999523163,"responseEnd":651.7999999523163,"responseStart":648.7999999523163,"secureConnectionStart":401.7999999523163},{"duration":251.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":401.90000009536743,"connectEnd":401.90000009536743,"connectStart":401.90000009536743,"domainLookupEnd":401.90000009536743,"domainLookupStart":401.90000009536743,"fetchStart":401.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":622.9000000953674,"responseEnd":653.4000000953674,"responseStart":650.5999999046326,"secureConnectionStart":401.90000009536743},{"duration":251.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":402,"connectEnd":402,"connectStart":402,"domainLookupEnd":402,"domainLookupStart":402,"fetchStart":402,"redirectEnd":0,"redirectStart":0,"requestStart":623.2999999523163,"responseEnd":653.0999999046326,"responseStart":649.9000000953674,"secureConnectionStart":402},{"duration":220.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":402.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":402.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":622.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":251.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":402.2000000476837,"connectEnd":402.2000000476837,"connectStart":402.2000000476837,"domainLookupEnd":402.2000000476837,"domainLookupStart":402.2000000476837,"fetchStart":402.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":625.2000000476837,"responseEnd":653.9000000953674,"responseStart":652.0999999046326,"secureConnectionStart":402.2000000476837},{"duration":221.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":402.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":402.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":623.5,"responseStart":0,"secureConnectionStart":0},{"duration":254,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":402.40000009536743,"connectEnd":402.40000009536743,"connectStart":402.40000009536743,"domainLookupEnd":402.40000009536743,"domainLookupStart":402.40000009536743,"fetchStart":402.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":632.9000000953674,"responseEnd":656.4000000953674,"responseStart":654.9000000953674,"secureConnectionStart":402.40000009536743},{"duration":519.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":407.90000009536743,"connectEnd":407.90000009536743,"connectStart":407.90000009536743,"domainLookupEnd":407.90000009536743,"domainLookupStart":407.90000009536743,"fetchStart":407.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":754.4000000953674,"responseEnd":927.5,"responseStart":919.7000000476837,"secureConnectionStart":407.90000009536743},{"duration":520.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":407.90000009536743,"connectEnd":407.90000009536743,"connectStart":407.90000009536743,"domainLookupEnd":407.90000009536743,"domainLookupStart":407.90000009536743,"fetchStart":407.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":835.4000000953674,"responseEnd":928.7000000476837,"responseStart":922.5,"secureConnectionStart":407.90000009536743},{"duration":114.39999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":960.7000000476837,"connectEnd":960.7000000476837,"connectStart":960.7000000476837,"domainLookupEnd":960.7000000476837,"domainLookupStart":960.7000000476837,"fetchStart":960.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1039.5999999046326,"responseEnd":1075.0999999046326,"responseStart":1073.2000000476837,"secureConnectionStart":960.7000000476837}],"fetchStart":0,"domainLookupStart":184,"domainLookupEnd":228,"connectStart":228,"connectEnd":248,"secureConnectionStart":237,"requestStart":249,"responseStart":395,"responseEnd":400,"domLoading":399,"domInteractive":1370,"domContentLoadedEventStart":1370,"domContentLoadedEventEnd":1410,"domComplete":1788,"loadEventStart":1788,"loadEventEnd":1788,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1320.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1320.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1321},{"name":"bigPipe.activity-panel-pipe-id.end","time":1321.7000000476837},{"name":"activityTabFullyLoaded","time":1425.7000000476837}],"measures":[],"correlationId":"d36a6c7e80ef8c","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
With the
MDEV-12353redo log format in MariaDB 10.5.2, the operation ought to be crash-safe.