Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
5.5(EOL) , 10.0(EOL) , 10.1(EOL) , 10.2(EOL) , 10.3(EOL)
As reported in MDEV-13485 , the function ibuf_remove_free_page() may be called while the caller is holding several mutexes or rw-locks. Because of this, this housekeeping loop may cause performance glitches for operations that involve tables that are stored in the InnoDB system tablespace. Deadlocks are also theoretically possible.
The worst impact of all is that due to the mutexes being held, calls to log_free_check() must be skipped during this housekeeping. This means that the cyclic InnoDB redo log may be overwritten. If the system crashes during this, it would be unable to recover.
The entry point to the problematic code is ibuf_free_excess_pages(). It would make sense to call it before acquiring any mutexes or rw-locks, in any DDL operation and in any 'pessimistic' operation that involves the system tablespace.
{"report":{"fcp":912.1000001430511,"ttfb":337.90000009536743,"pageVisibility":"visible","entityId":62841,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"afc6f09d-9d3a-4f76-bf68-917d8a0ce4bb","navigationType":0,"readyForUser":982.8000001907349,"redirectCount":0,"resourceLoadedEnd":1335.6000001430511,"resourceLoadedStart":343.40000009536743,"resourceTiming":[{"duration":80.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":343.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":343.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":424,"responseStart":0,"secureConnectionStart":0},{"duration":80.5,"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":343.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":343.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":424.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":146.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":343.7000000476837,"connectEnd":343.7000000476837,"connectStart":343.7000000476837,"domainLookupEnd":343.7000000476837,"domainLookupStart":343.7000000476837,"fetchStart":343.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":343.7000000476837,"responseEnd":489.90000009536743,"responseStart":489.90000009536743,"secureConnectionStart":343.7000000476837},{"duration":257.09999990463257,"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":343.80000019073486,"connectEnd":343.80000019073486,"connectStart":343.80000019073486,"domainLookupEnd":343.80000019073486,"domainLookupStart":343.80000019073486,"fetchStart":343.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":343.80000019073486,"responseEnd":600.9000000953674,"responseStart":600.9000000953674,"secureConnectionStart":343.80000019073486},{"duration":260.90000009536743,"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":343.90000009536743,"connectEnd":343.90000009536743,"connectStart":343.90000009536743,"domainLookupEnd":343.90000009536743,"domainLookupStart":343.90000009536743,"fetchStart":343.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":343.90000009536743,"responseEnd":604.8000001907349,"responseStart":604.8000001907349,"secureConnectionStart":343.90000009536743},{"duration":261.40000009536743,"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":344,"connectEnd":344,"connectStart":344,"domainLookupEnd":344,"domainLookupStart":344,"fetchStart":344,"redirectEnd":0,"redirectStart":0,"requestStart":344,"responseEnd":605.4000000953674,"responseStart":605.4000000953674,"secureConnectionStart":344},{"duration":261.90000009536743,"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":344,"connectEnd":344,"connectStart":344,"domainLookupEnd":344,"domainLookupStart":344,"fetchStart":344,"redirectEnd":0,"redirectStart":0,"requestStart":344,"responseEnd":605.9000000953674,"responseStart":605.9000000953674,"secureConnectionStart":344},{"duration":262.10000014305115,"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":344.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":344.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":606.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":262.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":344.2000000476837,"connectEnd":344.2000000476837,"connectStart":344.2000000476837,"domainLookupEnd":344.2000000476837,"domainLookupStart":344.2000000476837,"fetchStart":344.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":344.2000000476837,"responseEnd":606.4000000953674,"responseStart":606.4000000953674,"secureConnectionStart":344.2000000476837},{"duration":262.59999990463257,"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":344.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":344.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":607,"responseStart":0,"secureConnectionStart":0},{"duration":262.59999990463257,"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":344.60000014305115,"connectEnd":344.60000014305115,"connectStart":344.60000014305115,"domainLookupEnd":344.60000014305115,"domainLookupStart":344.60000014305115,"fetchStart":344.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":344.60000014305115,"responseEnd":607.2000000476837,"responseStart":607.2000000476837,"secureConnectionStart":344.60000014305115},{"duration":560.6000001430511,"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":345.5,"connectEnd":345.5,"connectStart":345.5,"domainLookupEnd":345.5,"domainLookupStart":345.5,"fetchStart":345.5,"redirectEnd":0,"redirectStart":0,"requestStart":345.5,"responseEnd":906.1000001430511,"responseStart":906.1000001430511,"secureConnectionStart":345.5},{"duration":990.1000001430511,"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":345.5,"connectEnd":345.5,"connectStart":345.5,"domainLookupEnd":345.5,"domainLookupStart":345.5,"fetchStart":345.5,"redirectEnd":0,"redirectStart":0,"requestStart":345.5,"responseEnd":1335.6000001430511,"responseStart":1335.6000001430511,"secureConnectionStart":345.5},{"duration":262.7999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":643.8000001907349,"connectEnd":643.8000001907349,"connectStart":643.8000001907349,"domainLookupEnd":643.8000001907349,"domainLookupStart":643.8000001907349,"fetchStart":643.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":643.8000001907349,"responseEnd":906.6000001430511,"responseStart":906.6000001430511,"secureConnectionStart":643.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":214,"responseStart":338,"responseEnd":340,"domLoading":341,"domInteractive":1356,"domContentLoadedEventStart":1356,"domContentLoadedEventEnd":1393,"domComplete":2053,"loadEventStart":2053,"loadEventEnd":2055,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1340.7000000476837},{"name":"bigPipe.sidebar-id.end","time":1341.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1341.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1343.9000000953674},{"name":"activityTabFullyLoaded","time":1399.3000001907349}],"measures":[],"correlationId":"c97743d5d3a0e3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":16,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}