It would appear that temporary tables that get created on disk are being leaked. A lot of #sql*.ibd files get left behind in /tmp and never get reaped, even though most of them do not have open file handles (checked with lsof).
There are no user-processes running on the server, only replication (from multiple sources) so it is somewhat mysterious that the temp tables are getting create in the first place.
This may be related to MDEV-4015. I'm wondering if it is possible that the reaping function is looking for MyISAM tables (aria is the default engine for temp tables, a compile time option), but since the default storage engine is InnoDB, the tables get created as such, and the clean-up doesn't catch them.
{"report":{"fcp":1344.5,"ttfb":390.19999980926514,"pageVisibility":"visible","entityId":22491,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"dda4d2cd-d454-47e4-baf8-3f71b5c45d3c","navigationType":0,"readyForUser":1416.3999996185303,"redirectCount":0,"resourceLoadedEnd":2732,"resourceLoadedStart":417,"resourceTiming":[{"duration":165,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":417,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":417,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":582,"responseStart":0,"secureConnectionStart":0},{"duration":170.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":417.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":417.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":588,"responseStart":0,"secureConnectionStart":0},{"duration":319,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":417.6000003814697,"connectEnd":417.6000003814697,"connectStart":417.6000003814697,"domainLookupEnd":417.6000003814697,"domainLookupStart":417.6000003814697,"fetchStart":417.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":417.6000003814697,"responseEnd":736.6000003814697,"responseStart":736.6000003814697,"secureConnectionStart":417.6000003814697},{"duration":508.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":417.80000019073486,"connectEnd":417.80000019073486,"connectStart":417.80000019073486,"domainLookupEnd":417.80000019073486,"domainLookupStart":417.80000019073486,"fetchStart":417.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":417.80000019073486,"responseEnd":926.3999996185303,"responseStart":926.3999996185303,"secureConnectionStart":417.80000019073486},{"duration":513.6999998092651,"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":418.1000003814697,"connectEnd":418.1000003814697,"connectStart":418.1000003814697,"domainLookupEnd":418.1000003814697,"domainLookupStart":418.1000003814697,"fetchStart":418.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":418.1000003814697,"responseEnd":931.8000001907349,"responseStart":931.8000001907349,"secureConnectionStart":418.1000003814697},{"duration":514.0999994277954,"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":418.30000019073486,"connectEnd":418.30000019073486,"connectStart":418.30000019073486,"domainLookupEnd":418.30000019073486,"domainLookupStart":418.30000019073486,"fetchStart":418.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":418.30000019073486,"responseEnd":932.3999996185303,"responseStart":932.3999996185303,"secureConnectionStart":418.30000019073486},{"duration":514.3000001907349,"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":418.3999996185303,"connectEnd":418.3999996185303,"connectStart":418.3999996185303,"domainLookupEnd":418.3999996185303,"domainLookupStart":418.3999996185303,"fetchStart":418.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":418.3999996185303,"responseEnd":932.6999998092651,"responseStart":932.6999998092651,"secureConnectionStart":418.3999996185303},{"duration":525.8999996185303,"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":418.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":418.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":944.5,"responseStart":0,"secureConnectionStart":0},{"duration":514.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":418.80000019073486,"connectEnd":418.80000019073486,"connectStart":418.80000019073486,"domainLookupEnd":418.80000019073486,"domainLookupStart":418.80000019073486,"fetchStart":418.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":418.80000019073486,"responseEnd":933.3000001907349,"responseStart":933.3000001907349,"secureConnectionStart":418.80000019073486},{"duration":525.9000005722046,"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":418.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":418.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":944.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":515,"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":419.1000003814697,"connectEnd":419.1000003814697,"connectStart":419.1000003814697,"domainLookupEnd":419.1000003814697,"domainLookupStart":419.1000003814697,"fetchStart":419.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":419.1000003814697,"responseEnd":934.1000003814697,"responseStart":934.1000003814697,"secureConnectionStart":419.1000003814697},{"duration":2306.7999992370605,"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":420.1000003814697,"connectEnd":420.1000003814697,"connectStart":420.1000003814697,"domainLookupEnd":420.1000003814697,"domainLookupStart":420.1000003814697,"fetchStart":420.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":420.1000003814697,"responseEnd":2726.8999996185303,"responseStart":2726.8999996185303,"secureConnectionStart":420.1000003814697},{"duration":2311.8999996185303,"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":420.1000003814697,"connectEnd":420.1000003814697,"connectStart":420.1000003814697,"domainLookupEnd":420.1000003814697,"domainLookupStart":420.1000003814697,"fetchStart":420.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":420.1000003814697,"responseEnd":2732,"responseStart":2732,"secureConnectionStart":420.1000003814697},{"duration":614.6999998092651,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":929.3000001907349,"connectEnd":929.3000001907349,"connectStart":929.3000001907349,"domainLookupEnd":929.3000001907349,"domainLookupStart":929.3000001907349,"fetchStart":929.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":929.3000001907349,"responseEnd":1544,"responseStart":1544,"secureConnectionStart":929.3000001907349},{"duration":1399.8000001907349,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1336.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1336.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2736.300000190735,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":204,"responseStart":390,"responseEnd":399,"domLoading":414,"domInteractive":2777,"domContentLoadedEventStart":2777,"domContentLoadedEventEnd":2826,"domComplete":4093,"loadEventStart":4093,"loadEventEnd":4094,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2739.300000190735},{"name":"bigPipe.sidebar-id.end","time":2740.1000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":2740.199999809265},{"name":"bigPipe.activity-panel-pipe-id.end","time":2742.8999996185303},{"name":"activityTabFullyLoaded","time":2843.300000190735}],"measures":[],"correlationId":"2a7714e4477096","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":15,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I can see this too. Regardless the default engine, with innodb_file_per_table=1 and InnoDB as an engine for a temporary table, 2 files per table are created in the tmp folder:
rw-rw--- 1 elenst elenst 8554 2013-01-09 18:22 #sql2ef8_1_0.frmrw-rw--- 1 elenst elenst 98304 2013-01-09 18:22 #sql2ef8_1_0.ibdrw-rw--- 1 elenst elenst 8554 2013-01-09 18:22 #sql2ef8_1_0.frmrw-rw--- 1 elenst elenst 98304 2013-01-09 18:22 #sql2ef8_1_0.ibdrw-rw--- 1 elenst elenst 8554 2013-01-09 18:22 #sql2ef8_1_1.frmrw-rw--- 1 elenst elenst 98304 2013-01-09 18:22 #sql2ef8_1_1.ibdWhen connection exits, .frm file gets removed, but .ibd doesn't:
rw-rw--- 1 elenst elenst 98304 2013-01-09 18:22 #sql2ef8_1_1.ibdrw-rw--- 1 elenst elenst 98304 2013-01-09 18:22 #sql2ef8_1_0.ibdIt doesn't seem to be happening on MySQL 5.6.9, possibly it was fixed in last 5.6 versions. I will need to dig a bit deeper into that to see if it was an upstream bug or not.