This issue was found while analysing MDEV-28800. When lock memory started occupying large amount of buffer pool we fail to terminate the transaction with ER_LOCK_TABLE_FULL. It eventually leads to a server crash with Innodb exiting with Fatal Error.
ib::fatal() << "Over 95 percent of the buffer pool is"
|
" occupied by lock heaps"
|
This is a regression looks to have been introduced in 10.6 by
commit b6a2472489accf0ae9ac3655ffe9b2997ab267ba
|
Author: Daniel Black <daniel@mariadb.org>
|
Date: Tue Feb 22 17:42:59 2022 +1100
|
|
MDEV-27891: SIGSEGV in InnoDB buffer pool resize
|
bool running_out() const
|
{
|
return !recv_recovery_is_on() &&
|
- UNIV_UNLIKELY(UT_LIST_GET_LEN(free) + UT_LIST_GET_LEN(LRU) <
|
- std::min(curr_size, old_size) / 4);
|
+ UT_LIST_GET_LEN(free) + UT_LIST_GET_LEN(LRU) <
|
+ n_chunks_new / 4 * chunks->size;
|
+ }
|
The integer division (n_chunks_new / 4) becomes zero whenever the total number of chunks are < 4 making the check completely ineffective for such cases. Also the check is inaccurate for larger chunks and needs to be corrected.
I will put forward a patch soon.
- is caused by
-
MDEV-27891
Delayed SIGSEGV in buf_pool_t::resize on InnoDB buffer pool resize after or during DROP TABLE
-
-
Closed
{"report":{"fcp":737.5,"ttfb":144.29999995231628,"pageVisibility":"visible","entityId":129153,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"941ab18c-3404-4b86-924f-79b2ed8deee8","navigationType":0,"readyForUser":809.2000000476837,"redirectCount":0,"resourceLoadedEnd":841.4000000953674,"resourceLoadedStart":149.20000004768372,"resourceTiming":[{"duration":138.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":149.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":138.29999995231628,"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":149.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":149.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":147.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":149.5,"connectEnd":149.5,"connectStart":149.5,"domainLookupEnd":149.5,"domainLookupStart":149.5,"fetchStart":149.5,"redirectEnd":0,"redirectStart":0,"requestStart":149.5,"responseEnd":296.7000000476837,"responseStart":296.7000000476837,"secureConnectionStart":149.5},{"duration":233.39999985694885,"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":149.70000004768372,"connectEnd":149.70000004768372,"connectStart":149.70000004768372,"domainLookupEnd":149.70000004768372,"domainLookupStart":149.70000004768372,"fetchStart":149.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":149.70000004768372,"responseEnd":383.09999990463257,"responseStart":383.09999990463257,"secureConnectionStart":149.70000004768372},{"duration":237.29999995231628,"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":149.79999995231628,"connectEnd":149.79999995231628,"connectStart":149.79999995231628,"domainLookupEnd":149.79999995231628,"domainLookupStart":149.79999995231628,"fetchStart":149.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":149.79999995231628,"responseEnd":387.09999990463257,"responseStart":387.09999990463257,"secureConnectionStart":149.79999995231628},{"duration":237.79999995231628,"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":149.79999995231628,"connectEnd":149.79999995231628,"connectStart":149.79999995231628,"domainLookupEnd":149.79999995231628,"domainLookupStart":149.79999995231628,"fetchStart":149.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":149.79999995231628,"responseEnd":387.59999990463257,"responseStart":387.59999990463257,"secureConnectionStart":149.79999995231628},{"duration":238.09999990463257,"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":150,"connectEnd":150,"connectStart":150,"domainLookupEnd":150,"domainLookupStart":150,"fetchStart":150,"redirectEnd":0,"redirectStart":0,"requestStart":150,"responseEnd":388.09999990463257,"responseStart":388.09999990463257,"secureConnectionStart":150},{"duration":238.60000014305115,"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":150.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":388.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":238.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":150.09999990463257,"connectEnd":150.09999990463257,"connectStart":150.09999990463257,"domainLookupEnd":150.09999990463257,"domainLookupStart":150.09999990463257,"fetchStart":150.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":150.09999990463257,"responseEnd":388.7000000476837,"responseStart":388.7000000476837,"secureConnectionStart":150.09999990463257},{"duration":238.79999995231628,"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":150.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":150.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":389.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":238.79999995231628,"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":150.40000009536743,"connectEnd":150.40000009536743,"connectStart":150.40000009536743,"domainLookupEnd":150.40000009536743,"domainLookupStart":150.40000009536743,"fetchStart":150.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":150.40000009536743,"responseEnd":389.2000000476837,"responseStart":389.2000000476837,"secureConnectionStart":150.40000009536743},{"duration":348,"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":163,"connectEnd":163,"connectStart":163,"domainLookupEnd":163,"domainLookupStart":163,"fetchStart":163,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":511,"responseStart":511,"secureConnectionStart":163},{"duration":676.8000001907349,"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":164.59999990463257,"connectEnd":164.59999990463257,"connectStart":164.59999990463257,"domainLookupEnd":164.59999990463257,"domainLookupStart":164.59999990463257,"fetchStart":164.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":164.59999990463257,"responseEnd":841.4000000953674,"responseStart":841.4000000953674,"secureConnectionStart":164.59999990463257},{"duration":61.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":450.40000009536743,"connectEnd":450.40000009536743,"connectStart":450.40000009536743,"domainLookupEnd":450.40000009536743,"domainLookupStart":450.40000009536743,"fetchStart":450.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":450.40000009536743,"responseEnd":512.0999999046326,"responseStart":512.0999999046326,"secureConnectionStart":450.40000009536743},{"duration":194.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":696.2000000476837,"connectEnd":696.2000000476837,"connectStart":696.2000000476837,"domainLookupEnd":696.2000000476837,"domainLookupStart":696.2000000476837,"fetchStart":696.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":696.2000000476837,"responseEnd":891.0999999046326,"responseStart":891.0999999046326,"secureConnectionStart":696.2000000476837},{"duration":160.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":731,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":731,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":891.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":145,"responseEnd":165,"domLoading":148,"domInteractive":863,"domContentLoadedEventStart":863,"domContentLoadedEventEnd":905,"domComplete":1548,"loadEventStart":1548,"loadEventEnd":1549,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":846.2999999523163},{"name":"bigPipe.sidebar-id.end","time":847.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":847.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":849.5},{"name":"activityTabFullyLoaded","time":915.7000000476837}],"measures":[],"correlationId":"deac2b7fa860a2","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":73,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}