Every now and then, especially in IMPORT TABLESPACE tests, we encounter an assertion failure in log_checkpoint():
10.5
|
#7 0x000055cadaf300cb in log_checkpoint ()
|
at /mariadb/10.5-MDEV-12353/storage/innobase/log/log0log.cc:1367
|
1367 ut_ad(oldest_lsn >= log_sys.last_checkpoint_lsn);
|
(gdb) i lo
|
oldest_lsn = 93891
|
flush_lsn = <optimized out>
|
end_lsn = <optimized out>
|
do_write = <optimized out>
|
(gdb) p log_sys.last_checkpoint_lsn
$1 = 93906
(gdb) p log_sys.next_checkpoint_lsn
$2 = 93906
(gdb) p log_sys.last_checkpoint_lsn-oldest_lsn
$3 = 15
(gdb) p log_sys.lsn
$4 = {<std::__atomic_base<unsigned long>> = {_M_i = 121116}, <No data fields>}
The difference is more than the size of FILE_CHECKPOINT record, which is 12 bytes.
If I understand it correctly, the the assertion is reporting that the previous checkpoint was too long ago, and we were not actually crash-safe. This is an indication that a log_free_check() call is missing. I do not see any call to in row0import.cc. The function row_import_for_mysql() is writing a small amount of redo log in trx_undo_assign().
I have the feeling that this is related to either MDEV-12353 changing the redo log format, or MDEV-21534 improving the log write speed.
One affected test is encryption.innodb-checksum-algorithm, but there probably are others.
{"report":{"fcp":1737.5,"ttfb":265.29999999701977,"pageVisibility":"visible","entityId":84502,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"92bd45a5-65b5-469b-89e1-d5bc7a2ddc1b","navigationType":0,"readyForUser":1816.7999999970198,"redirectCount":0,"resourceLoadedEnd":1718.1000000014901,"resourceLoadedStart":270.70000000298023,"resourceTiming":[{"duration":981.1999999955297,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":270.70000000298023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":270.70000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1251.8999999985099,"responseStart":0,"secureConnectionStart":0},{"duration":981.3000000044703,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":270.8999999985099,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":270.8999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1252.2000000029802,"responseStart":0,"secureConnectionStart":0},{"duration":990.5999999940395,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":271.20000000298023,"connectEnd":271.20000000298023,"connectStart":271.20000000298023,"domainLookupEnd":271.20000000298023,"domainLookupStart":271.20000000298023,"fetchStart":271.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":271.20000000298023,"responseEnd":1261.7999999970198,"responseStart":1261.7999999970198,"secureConnectionStart":271.20000000298023},{"duration":1050.1000000014901,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":271.29999999701977,"connectEnd":271.29999999701977,"connectStart":271.29999999701977,"domainLookupEnd":271.29999999701977,"domainLookupStart":271.29999999701977,"fetchStart":271.29999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":271.29999999701977,"responseEnd":1321.3999999985099,"responseStart":1321.3999999985099,"secureConnectionStart":271.29999999701977},{"duration":1053.7999999970198,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":271.6000000014901,"connectEnd":271.6000000014901,"connectStart":271.6000000014901,"domainLookupEnd":271.6000000014901,"domainLookupStart":271.6000000014901,"fetchStart":271.6000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":271.6000000014901,"responseEnd":1325.3999999985099,"responseStart":1325.3999999985099,"secureConnectionStart":271.6000000014901},{"duration":1054.1000000014901,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":271.79999999701977,"connectEnd":271.79999999701977,"connectStart":271.79999999701977,"domainLookupEnd":271.79999999701977,"domainLookupStart":271.79999999701977,"fetchStart":271.79999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":271.79999999701977,"responseEnd":1325.8999999985099,"responseStart":1325.8999999985099,"secureConnectionStart":271.79999999701977},{"duration":1054.3999999985099,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":272,"connectEnd":272,"connectStart":272,"domainLookupEnd":272,"domainLookupStart":272,"fetchStart":272,"redirectEnd":0,"redirectStart":0,"requestStart":272,"responseEnd":1326.3999999985099,"responseStart":1326.3999999985099,"secureConnectionStart":272},{"duration":1139.7999999970198,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":272.20000000298023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":272.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1412,"responseStart":0,"secureConnectionStart":0},{"duration":1054.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":272.29999999701977,"connectEnd":272.29999999701977,"connectStart":272.29999999701977,"domainLookupEnd":272.29999999701977,"domainLookupStart":272.29999999701977,"fetchStart":272.29999999701977,"redirectEnd":0,"redirectStart":0,"requestStart":272.29999999701977,"responseEnd":1326.7999999970198,"responseStart":1326.7999999970198,"secureConnectionStart":272.29999999701977},{"duration":1139.7000000029802,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":272.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":272.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1412.2000000029802,"responseStart":0,"secureConnectionStart":0},{"duration":1054.7999999970198,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":272.6000000014901,"connectEnd":272.6000000014901,"connectStart":272.6000000014901,"domainLookupEnd":272.6000000014901,"domainLookupStart":272.6000000014901,"fetchStart":272.6000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":272.6000000014901,"responseEnd":1327.3999999985099,"responseStart":1327.3999999985099,"secureConnectionStart":272.6000000014901},{"duration":1191.8999999985099,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":278.1000000014901,"connectEnd":278.1000000014901,"connectStart":278.1000000014901,"domainLookupEnd":278.1000000014901,"domainLookupStart":278.1000000014901,"fetchStart":278.1000000014901,"redirectEnd":0,"redirectStart":0,"requestStart":278.1000000014901,"responseEnd":1470,"responseStart":1470,"secureConnectionStart":278.1000000014901},{"duration":1439.8999999985099,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":278.20000000298023,"connectEnd":278.20000000298023,"connectStart":278.20000000298023,"domainLookupEnd":278.20000000298023,"domainLookupStart":278.20000000298023,"fetchStart":278.20000000298023,"redirectEnd":0,"redirectStart":0,"requestStart":278.20000000298023,"responseEnd":1718.1000000014901,"responseStart":1718.1000000014901,"secureConnectionStart":278.20000000298023},{"duration":166.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1438.3999999985099,"connectEnd":1438.3999999985099,"connectStart":1438.3999999985099,"domainLookupEnd":1438.3999999985099,"domainLookupStart":1438.3999999985099,"fetchStart":1438.3999999985099,"redirectEnd":0,"redirectStart":0,"requestStart":1438.3999999985099,"responseEnd":1604.8999999985099,"responseStart":1604.8999999985099,"secureConnectionStart":1438.3999999985099}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":94,"responseStart":265,"responseEnd":270,"domLoading":268,"domInteractive":1874,"domContentLoadedEventStart":1874,"domContentLoadedEventEnd":1916,"domComplete":2960,"loadEventStart":2960,"loadEventEnd":2962,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1855},{"name":"bigPipe.sidebar-id.end","time":1855.7999999970198},{"name":"bigPipe.activity-panel-pipe-id.start","time":1856},{"name":"bigPipe.activity-panel-pipe-id.end","time":1858.7000000029802},{"name":"activityTabFullyLoaded","time":1924.1000000014901}],"measures":[],"correlationId":"8a7229e1e48d8d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":15,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}