Reduce memory usage during the recovery page.
1) innodb_gis.rtree_recovery,4k test case - Fails with the following error
[Warning] InnoDB: Difficult to find free blocks in the buffer pool (21 search iterations)! 21 failed attempts to flush a page! Consider increasing innodb_buffer_pool_size. Pending flushes (fsync) log: 0; buffer pool: 0. 577 OS file reads, 1 OS file writes, 1 OS fsyncs.
|
Buffer ran out of memory during recovery. Remove recv_n_pool_free_frames hack
2) MDEV-12699 introduces mlog_reset. Basically, it stores all init records of the page, mlog_index_load of all page and their respective LSN.
It is done to avoid I/O of mlog_init_ record pages during recovery.
Remove mlog_reset and store this information as a part of recv_addr.
{"report":{"fcp":2032.1000001430511,"ttfb":1047.7000000476837,"pageVisibility":"visible","entityId":74246,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f8ef499a-4d8b-4ddf-83ff-dd6131536a0e","navigationType":0,"readyForUser":2126,"redirectCount":0,"resourceLoadedEnd":2863.5,"resourceLoadedStart":1065,"resourceTiming":[{"duration":369.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":1065,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1065,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1434.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":369.39999985694885,"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":1065.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1065.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1434.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":459.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":1065.4000000953674,"connectEnd":1065.4000000953674,"connectStart":1065.4000000953674,"domainLookupEnd":1065.4000000953674,"domainLookupStart":1065.4000000953674,"fetchStart":1065.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1065.4000000953674,"responseEnd":1524.7000000476837,"responseStart":1524.6000001430511,"secureConnectionStart":1065.4000000953674},{"duration":531.7999999523163,"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":1065.7000000476837,"connectEnd":1065.7000000476837,"connectStart":1065.7000000476837,"domainLookupEnd":1065.7000000476837,"domainLookupStart":1065.7000000476837,"fetchStart":1065.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1065.7000000476837,"responseEnd":1597.5,"responseStart":1597.5,"secureConnectionStart":1065.7000000476837},{"duration":536,"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":1065.9000000953674,"connectEnd":1065.9000000953674,"connectStart":1065.9000000953674,"domainLookupEnd":1065.9000000953674,"domainLookupStart":1065.9000000953674,"fetchStart":1065.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1065.9000000953674,"responseEnd":1601.9000000953674,"responseStart":1601.9000000953674,"secureConnectionStart":1065.9000000953674},{"duration":536.1000001430511,"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":1066.2000000476837,"connectEnd":1066.2000000476837,"connectStart":1066.2000000476837,"domainLookupEnd":1066.2000000476837,"domainLookupStart":1066.2000000476837,"fetchStart":1066.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1066.2000000476837,"responseEnd":1602.3000001907349,"responseStart":1602.3000001907349,"secureConnectionStart":1066.2000000476837},{"duration":536.2999999523163,"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":1066.4000000953674,"connectEnd":1066.4000000953674,"connectStart":1066.4000000953674,"domainLookupEnd":1066.4000000953674,"domainLookupStart":1066.4000000953674,"fetchStart":1066.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1066.4000000953674,"responseEnd":1602.7000000476837,"responseStart":1602.7000000476837,"secureConnectionStart":1066.4000000953674},{"duration":620.8999998569489,"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":1066.6000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1066.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1687.5,"responseStart":0,"secureConnectionStart":0},{"duration":536.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":1066.8000001907349,"connectEnd":1066.8000001907349,"connectStart":1066.8000001907349,"domainLookupEnd":1066.8000001907349,"domainLookupStart":1066.8000001907349,"fetchStart":1066.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1066.8000001907349,"responseEnd":1603.1000001430511,"responseStart":1603.1000001430511,"secureConnectionStart":1066.8000001907349},{"duration":620.5,"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":1067.1000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1067.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1687.6000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":536.5,"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":1067.2000000476837,"connectEnd":1067.2000000476837,"connectStart":1067.2000000476837,"domainLookupEnd":1067.2000000476837,"domainLookupStart":1067.2000000476837,"fetchStart":1067.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1067.2000000476837,"responseEnd":1603.7000000476837,"responseStart":1603.7000000476837,"secureConnectionStart":1067.2000000476837},{"duration":1362.3000001907349,"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":1068.5,"connectEnd":1068.5,"connectStart":1068.5,"domainLookupEnd":1068.5,"domainLookupStart":1068.5,"fetchStart":1068.5,"redirectEnd":0,"redirectStart":0,"requestStart":1068.5,"responseEnd":2430.800000190735,"responseStart":2430.800000190735,"secureConnectionStart":1068.5},{"duration":1794.8999998569489,"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":1068.6000001430511,"connectEnd":1068.6000001430511,"connectStart":1068.6000001430511,"domainLookupEnd":1068.6000001430511,"domainLookupStart":1068.6000001430511,"fetchStart":1068.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":1068.6000001430511,"responseEnd":2863.5,"responseStart":2863.5,"secureConnectionStart":1068.6000001430511},{"duration":772.5999999046326,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1700.8000001907349,"connectEnd":1700.8000001907349,"connectStart":1700.8000001907349,"domainLookupEnd":1700.8000001907349,"domainLookupStart":1700.8000001907349,"fetchStart":1700.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1700.8000001907349,"responseEnd":2473.4000000953674,"responseStart":2473.4000000953674,"secureConnectionStart":1700.8000001907349},{"duration":889.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2024.6000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2024.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2914.100000143051,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":856,"responseStart":1047,"responseEnd":1060,"domLoading":1061,"domInteractive":2924,"domContentLoadedEventStart":2924,"domContentLoadedEventEnd":2987,"domComplete":3586,"loadEventStart":3586,"loadEventEnd":3587,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2879.100000143051},{"name":"bigPipe.sidebar-id.end","time":2880},{"name":"bigPipe.activity-panel-pipe-id.start","time":2880.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":2885.4000000953674},{"name":"activityTabFullyLoaded","time":3012.4000000953674}],"measures":[],"correlationId":"234fa58a8e1f64","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":129,"dbReadsTimeInMs":21,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I got this on 10.4:
innodb.undo_truncate_recover '2,4k,innodb,strict_crc32' [ fail ]
Test ended at 2019-08-22 13:08:44
CURRENT_TEST: innodb.undo_truncate_recover
mysqltest: In included file "./include/wait_until_connected_again.inc":
included from ./include/start_mysqld.inc at line 42:
included from /mariadb/10.4/mysql-test/suite/innodb/t/undo_truncate_recover.test at line 55:
At line 34: Server failed to restart
The cause was at the end of the server error log:
2019-08-22 13:00:20 0 [Note] InnoDB: Opened 2 undo tablespaces
2019-08-22 13:00:20 0 [Warning] InnoDB: innodb_undo_tablespaces=0 disables dedicated undo log tablespaces
2019-08-22 13:00:20 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=19044026
2019-08-22 13:00:20 0 [Note] InnoDB: Recovered page [page id: space=1, page number=1068] from the doublewrite buffer.
…
2019-08-22 13:00:20 0 [Note] InnoDB: Recovered page [page id: space=1, page number=1008] from the doublewrite buffer.
2019-08-22 13:00:20 0 [Warning] InnoDB: Difficult to find free blocks in the buffer pool (21 search iterations)! 21 failed attempts to flush a page! Consider increasing innodb_buffer_pool_size. Pending flushes (fsync) log: 0; buffer pool: 0. 1211 OS file reads, 61 OS file writes, 2 OS fsyncs.