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":912.3999999761581,"ttfb":246.69999992847443,"pageVisibility":"visible","entityId":78933,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"003eb651-164d-4836-9bc0-9bd7e21842ec","navigationType":0,"readyForUser":991.8999999761581,"redirectCount":0,"resourceLoadedEnd":1104.2999999523163,"resourceLoadedStart":252.19999992847443,"resourceTiming":[{"duration":57.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":252.19999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":252.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":57,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":252.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":252.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.5,"responseStart":0,"secureConnectionStart":0},{"duration":124.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":252.69999992847443,"connectEnd":252.69999992847443,"connectStart":252.69999992847443,"domainLookupEnd":252.69999992847443,"domainLookupStart":252.69999992847443,"fetchStart":252.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":252.69999992847443,"responseEnd":377.09999990463257,"responseStart":377.09999990463257,"secureConnectionStart":252.69999992847443},{"duration":335.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":252.79999995231628,"connectEnd":252.79999995231628,"connectStart":252.79999995231628,"domainLookupEnd":252.79999995231628,"domainLookupStart":252.79999995231628,"fetchStart":252.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":252.79999995231628,"responseEnd":588.6999999284744,"responseStart":588.6999999284744,"secureConnectionStart":252.79999995231628},{"duration":340.2999999523163,"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":253,"connectEnd":253,"connectStart":253,"domainLookupEnd":253,"domainLookupStart":253,"fetchStart":253,"redirectEnd":0,"redirectStart":0,"requestStart":253,"responseEnd":593.2999999523163,"responseStart":593.2999999523163,"secureConnectionStart":253},{"duration":339.7000000476837,"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":253.09999990463257,"connectEnd":253.09999990463257,"connectStart":253.09999990463257,"domainLookupEnd":253.09999990463257,"domainLookupStart":253.09999990463257,"fetchStart":253.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":253.09999990463257,"responseEnd":592.7999999523163,"responseStart":592.7999999523163,"secureConnectionStart":253.09999990463257},{"duration":340.1999999284744,"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":253.39999997615814,"connectEnd":253.39999997615814,"connectStart":253.39999997615814,"domainLookupEnd":253.39999997615814,"domainLookupStart":253.39999997615814,"fetchStart":253.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":253.39999997615814,"responseEnd":593.5999999046326,"responseStart":593.5999999046326,"secureConnectionStart":253.39999997615814},{"duration":341.2999999523163,"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":253.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":594.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":340.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":253.69999992847443,"connectEnd":253.69999992847443,"connectStart":253.69999992847443,"domainLookupEnd":253.69999992847443,"domainLookupStart":253.69999992847443,"fetchStart":253.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":253.69999992847443,"responseEnd":594.0999999046326,"responseStart":594.0999999046326,"secureConnectionStart":253.69999992847443},{"duration":341.10000002384186,"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":253.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":594.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":340.60000002384186,"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":254.09999990463257,"connectEnd":254.09999990463257,"connectStart":254.09999990463257,"domainLookupEnd":254.09999990463257,"domainLookupStart":254.09999990463257,"fetchStart":254.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":254.09999990463257,"responseEnd":594.6999999284744,"responseStart":594.6999999284744,"secureConnectionStart":254.09999990463257},{"duration":686.2999999523163,"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":263.2999999523163,"connectEnd":263.2999999523163,"connectStart":263.2999999523163,"domainLookupEnd":263.2999999523163,"domainLookupStart":263.2999999523163,"fetchStart":263.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":263.2999999523163,"responseEnd":949.5999999046326,"responseStart":949.5999999046326,"secureConnectionStart":263.2999999523163},{"duration":840.7999999523163,"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":263.5,"connectEnd":263.5,"connectStart":263.5,"domainLookupEnd":263.5,"domainLookupStart":263.5,"fetchStart":263.5,"redirectEnd":0,"redirectStart":0,"requestStart":263.5,"responseEnd":1104.2999999523163,"responseStart":1104.2999999523163,"secureConnectionStart":263.5},{"duration":391.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":526.5,"connectEnd":526.5,"connectStart":526.5,"domainLookupEnd":526.5,"domainLookupStart":526.5,"fetchStart":526.5,"redirectEnd":0,"redirectStart":0,"requestStart":526.5,"responseEnd":917.5999999046326,"responseStart":917.5999999046326,"secureConnectionStart":526.5},{"duration":212,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":905.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":905.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1117.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":62,"domainLookupEnd":68,"connectStart":68,"connectEnd":91,"secureConnectionStart":76,"requestStart":92,"responseStart":247,"responseEnd":263,"domLoading":251,"domInteractive":1119,"domContentLoadedEventStart":1119,"domContentLoadedEventEnd":1160,"domComplete":1501,"loadEventStart":1501,"loadEventEnd":1502,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1107.7999999523163},{"name":"bigPipe.sidebar-id.end","time":1108.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1108.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1109.6999999284744},{"name":"activityTabFullyLoaded","time":1173.5}],"measures":[],"correlationId":"cb350fdd975043","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
With the
MDEV-12353redo log format in MariaDB 10.5.2, the operation ought to be crash-safe.