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":919.6999999284744,"ttfb":193.09999990463257,"pageVisibility":"visible","entityId":84502,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"348c40a5-6a4f-4631-b434-e0d15a6354dc","navigationType":0,"readyForUser":978.5,"redirectCount":0,"resourceLoadedEnd":1025.8999999761581,"resourceLoadedStart":211.39999997615814,"resourceTiming":[{"duration":282.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":211.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":494.1999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":282.60000002384186,"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":211.69999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":494.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":291.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":211.89999997615814,"connectEnd":211.89999997615814,"connectStart":211.89999997615814,"domainLookupEnd":211.89999997615814,"domainLookupStart":211.89999997615814,"fetchStart":211.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":211.89999997615814,"responseEnd":503,"responseStart":503,"secureConnectionStart":211.89999997615814},{"duration":314.8000000715256,"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":212.59999990463257,"connectEnd":212.59999990463257,"connectStart":212.59999990463257,"domainLookupEnd":212.59999990463257,"domainLookupStart":212.59999990463257,"fetchStart":212.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":212.59999990463257,"responseEnd":527.3999999761581,"responseStart":527.3999999761581,"secureConnectionStart":212.59999990463257},{"duration":318.10000002384186,"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":212.79999995231628,"connectEnd":212.79999995231628,"connectStart":212.79999995231628,"domainLookupEnd":212.79999995231628,"domainLookupStart":212.79999995231628,"fetchStart":212.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":212.79999995231628,"responseEnd":530.8999999761581,"responseStart":530.7999999523163,"secureConnectionStart":212.79999995231628},{"duration":318.2999999523163,"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":212.89999997615814,"connectEnd":212.89999997615814,"connectStart":212.89999997615814,"domainLookupEnd":212.89999997615814,"domainLookupStart":212.89999997615814,"fetchStart":212.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":212.89999997615814,"responseEnd":531.1999999284744,"responseStart":531.1999999284744,"secureConnectionStart":212.89999997615814},{"duration":318.5,"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":213,"connectEnd":213,"connectStart":213,"domainLookupEnd":213,"domainLookupStart":213,"fetchStart":213,"redirectEnd":0,"redirectStart":0,"requestStart":213,"responseEnd":531.5,"responseStart":531.5,"secureConnectionStart":213},{"duration":318.8000000715256,"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":213.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":531.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":318.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":213.19999992847443,"connectEnd":213.19999992847443,"connectStart":213.19999992847443,"domainLookupEnd":213.19999992847443,"domainLookupStart":213.19999992847443,"fetchStart":213.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":213.19999992847443,"responseEnd":531.8999999761581,"responseStart":531.8999999761581,"secureConnectionStart":213.19999992847443},{"duration":319,"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":213.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":532.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":319,"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":213.39999997615814,"connectEnd":213.39999997615814,"connectStart":213.39999997615814,"domainLookupEnd":213.39999997615814,"domainLookupStart":213.39999997615814,"fetchStart":213.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":213.39999997615814,"responseEnd":532.3999999761581,"responseStart":532.3999999761581,"secureConnectionStart":213.39999997615814},{"duration":672.6000000238419,"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":242.09999990463257,"connectEnd":242.09999990463257,"connectStart":242.09999990463257,"domainLookupEnd":242.09999990463257,"domainLookupStart":242.09999990463257,"fetchStart":242.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":242.09999990463257,"responseEnd":914.6999999284744,"responseStart":914.6999999284744,"secureConnectionStart":242.09999990463257},{"duration":775.5,"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":250.39999997615814,"connectEnd":250.39999997615814,"connectStart":250.39999997615814,"domainLookupEnd":250.39999997615814,"domainLookupStart":250.39999997615814,"fetchStart":250.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":250.39999997615814,"responseEnd":1025.8999999761581,"responseStart":1025.8999999761581,"secureConnectionStart":250.39999997615814},{"duration":295.2999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":729.7999999523163,"connectEnd":729.7999999523163,"connectStart":729.7999999523163,"domainLookupEnd":729.7999999523163,"domainLookupStart":729.7999999523163,"fetchStart":729.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":729.7999999523163,"responseEnd":1025.0999999046326,"responseStart":1025.0999999046326,"secureConnectionStart":729.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":193,"responseEnd":250,"domLoading":196,"domInteractive":1051,"domContentLoadedEventStart":1051,"domContentLoadedEventEnd":1088,"domComplete":1834,"loadEventStart":1834,"loadEventEnd":1835,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1032.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1032.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1033},{"name":"bigPipe.activity-panel-pipe-id.end","time":1035.3999999761581},{"name":"activityTabFullyLoaded","time":1097.8999999761581}],"measures":[],"correlationId":"9eaf04e3bff90a","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}