Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
None
When using InnoDB engine for temporary tables, reclaiming of free table space does not seem to work.
Periodically performing statements that force the server to write into InnoDB temporary tablespace eventually results in the reaching of maximum size of temporary table space or even a full disk.
I was able to reproduce this behaviour by execution of following statements more times even when the connection between the executions is dropped:
create temporary table temp_random (
id bigint primary key ,
random decimal not null
);
insert into temp_random(id, random) select seq, rand() from seq_0_to_2000000;
drop temporary table temp_random;
After each execution grow the file /var/lib/mysql/ibtmp1 in size
Expected behaviour:
The file /var/lib/mysql/ibtmp1 should grow in size only after first execution. After second an further execution should the file size stay eventually unchnaged as the space claimed by the first execution should be reused by the further executions.
Last version where the expected behaviour was observed: 10.5.11
Workarround: explicitly setting engine for temporary tables to MyISAM
{"report":{"fcp":934.8000001907349,"ttfb":166.70000004768372,"pageVisibility":"visible","entityId":103698,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"bb700adf-1e58-4322-aa34-3ce30054cb3e","navigationType":0,"readyForUser":1004.5,"redirectCount":0,"resourceLoadedEnd":1061.6000001430511,"resourceLoadedStart":172.30000019073486,"resourceTiming":[{"duration":285.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":172.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":458.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":285.7000000476837,"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":172.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":458.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":295,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":172.70000004768372,"connectEnd":172.70000004768372,"connectStart":172.70000004768372,"domainLookupEnd":172.70000004768372,"domainLookupStart":172.70000004768372,"fetchStart":172.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":172.70000004768372,"responseEnd":467.7000000476837,"responseStart":467.7000000476837,"secureConnectionStart":172.70000004768372},{"duration":369.90000009536743,"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":172.90000009536743,"connectEnd":172.90000009536743,"connectStart":172.90000009536743,"domainLookupEnd":172.90000009536743,"domainLookupStart":172.90000009536743,"fetchStart":172.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":172.90000009536743,"responseEnd":542.8000001907349,"responseStart":542.8000001907349,"secureConnectionStart":172.90000009536743},{"duration":373.7000000476837,"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":173,"connectEnd":173,"connectStart":173,"domainLookupEnd":173,"domainLookupStart":173,"fetchStart":173,"redirectEnd":0,"redirectStart":0,"requestStart":173,"responseEnd":546.7000000476837,"responseStart":546.7000000476837,"secureConnectionStart":173},{"duration":374.09999990463257,"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":173.10000014305115,"connectEnd":173.10000014305115,"connectStart":173.10000014305115,"domainLookupEnd":173.10000014305115,"domainLookupStart":173.10000014305115,"fetchStart":173.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":173.10000014305115,"responseEnd":547.2000000476837,"responseStart":547.2000000476837,"secureConnectionStart":173.10000014305115},{"duration":374.2999999523163,"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":173.20000004768372,"connectEnd":173.20000004768372,"connectStart":173.20000004768372,"domainLookupEnd":173.20000004768372,"domainLookupStart":173.20000004768372,"fetchStart":173.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":173.20000004768372,"responseEnd":547.5,"responseStart":547.5,"secureConnectionStart":173.20000004768372},{"duration":374.5,"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":173.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":547.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":374.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":173.40000009536743,"connectEnd":173.40000009536743,"connectStart":173.40000009536743,"domainLookupEnd":173.40000009536743,"domainLookupStart":173.40000009536743,"fetchStart":173.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":173.40000009536743,"responseEnd":547.8000001907349,"responseStart":547.8000001907349,"secureConnectionStart":173.40000009536743},{"duration":374.7000000476837,"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":173.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":548.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":374.7999999523163,"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":173.60000014305115,"connectEnd":173.60000014305115,"connectStart":173.60000014305115,"domainLookupEnd":173.60000014305115,"domainLookupStart":173.60000014305115,"fetchStart":173.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":173.60000014305115,"responseEnd":548.4000000953674,"responseStart":548.4000000953674,"secureConnectionStart":173.60000014305115},{"duration":881.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":179.70000004768372,"connectEnd":179.70000004768372,"connectStart":179.70000004768372,"domainLookupEnd":179.70000004768372,"domainLookupStart":179.70000004768372,"fetchStart":179.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":179.70000004768372,"responseEnd":1061.3000001907349,"responseStart":1061.3000001907349,"secureConnectionStart":179.70000004768372},{"duration":881.7999999523163,"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":179.80000019073486,"connectEnd":179.80000019073486,"connectStart":179.80000019073486,"domainLookupEnd":179.80000019073486,"domainLookupStart":179.80000019073486,"fetchStart":179.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":179.80000019073486,"responseEnd":1061.6000001430511,"responseStart":1061.6000001430511,"secureConnectionStart":179.80000019073486},{"duration":379.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":681.6000001430511,"connectEnd":681.6000001430511,"connectStart":681.6000001430511,"domainLookupEnd":681.6000001430511,"domainLookupStart":681.6000001430511,"fetchStart":681.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":681.6000001430511,"responseEnd":1060.8000001907349,"responseStart":1060.7000000476837,"secureConnectionStart":681.6000001430511},{"duration":215.69999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":912.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":912.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1128,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":17,"responseStart":166,"responseEnd":176,"domLoading":170,"domInteractive":1090,"domContentLoadedEventStart":1090,"domContentLoadedEventEnd":1128,"domComplete":2031,"loadEventStart":2031,"loadEventEnd":2032,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1074},{"name":"bigPipe.sidebar-id.end","time":1074.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1074.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1077.4000000953674},{"name":"activityTabFullyLoaded","time":1136.4000000953674}],"measures":[],"correlationId":"a388ca2694fd92","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":84,"dbReadsTimeInMs":17,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}