When using pool-of-threads, clients that have their latest query still in the thread pool queue, waiting for a free execution thread, do not have that query shown in the SHOW PROCESSLIST output, instead they show with State: Sleep.
Apparently they are also considered idle by the server itself, as after a query has been waiting in the thread pool queue for more than wait_timeout seconds the connection gets terminated with a timeout message in the servers error log stating a read timeout (if log_warning>2).
The client just receives an unspecific "Lost connection to MySQL server during query" error without actual information why the query and the connection was terminated.
Even worse: sending the query to the server does not even reset the idle timer. With wait_timeout=60 and a client that has already idle for 30 seconds, query and connection are terminated after another 30 seconds already.
IMHO this is wrong as the client is not actually idle, the responsibility for the inactivity is totally on the server side, and even if we consider to terminate a query after a certain wait time in the pool-of-threads queue, there should be a more meaningful error message for this, and a separately configurable timeout for this.
- relates to
-
MDEV-21103
Show thread pool wait status in SHOW PROCESSLIST
-
-
Open
{"report":{"fcp":1189.3999998569489,"ttfb":170.79999995231628,"pageVisibility":"visible","entityId":80579,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"e16208f7-dbd2-4da5-ba3a-7fcd071c338e","navigationType":0,"readyForUser":1274.2000000476837,"redirectCount":0,"resourceLoadedEnd":1175.2000000476837,"resourceLoadedStart":175.70000004768372,"resourceTiming":[{"duration":30.199999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":175.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":175.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":205.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":31.200000047683716,"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":176,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":207.20000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":81.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":176.20000004768372,"connectEnd":176.20000004768372,"connectStart":176.20000004768372,"domainLookupEnd":176.20000004768372,"domainLookupStart":176.20000004768372,"fetchStart":176.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":176.20000004768372,"responseEnd":257.7000000476837,"responseStart":257.7000000476837,"secureConnectionStart":176.20000004768372},{"duration":280.60000014305115,"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":176.39999985694885,"connectEnd":176.39999985694885,"connectStart":176.39999985694885,"domainLookupEnd":176.39999985694885,"domainLookupStart":176.39999985694885,"fetchStart":176.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":176.39999985694885,"responseEnd":457,"responseStart":457,"secureConnectionStart":176.39999985694885},{"duration":290.2000000476837,"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":176.59999990463257,"connectEnd":176.59999990463257,"connectStart":176.59999990463257,"domainLookupEnd":176.59999990463257,"domainLookupStart":176.59999990463257,"fetchStart":176.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":176.59999990463257,"responseEnd":466.7999999523163,"responseStart":466.7999999523163,"secureConnectionStart":176.59999990463257},{"duration":295.09999990463257,"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":176.79999995231628,"connectEnd":176.79999995231628,"connectStart":176.79999995231628,"domainLookupEnd":176.79999995231628,"domainLookupStart":176.79999995231628,"fetchStart":176.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":176.79999995231628,"responseEnd":471.89999985694885,"responseStart":471.89999985694885,"secureConnectionStart":176.79999995231628},{"duration":296.2000000476837,"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":176.89999985694885,"connectEnd":176.89999985694885,"connectStart":176.89999985694885,"domainLookupEnd":176.89999985694885,"domainLookupStart":176.89999985694885,"fetchStart":176.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":176.89999985694885,"responseEnd":473.09999990463257,"responseStart":473,"secureConnectionStart":176.89999985694885},{"duration":438.7000000476837,"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":177.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":615.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":298.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":177.29999995231628,"connectEnd":177.29999995231628,"connectStart":177.29999995231628,"domainLookupEnd":177.29999995231628,"domainLookupStart":177.29999995231628,"fetchStart":177.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":177.29999995231628,"responseEnd":475.89999985694885,"responseStart":475.89999985694885,"secureConnectionStart":177.29999995231628},{"duration":438.89999985694885,"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":177.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":616.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":299.90000009536743,"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":177.59999990463257,"connectEnd":177.59999990463257,"connectStart":177.59999990463257,"domainLookupEnd":177.59999990463257,"domainLookupStart":177.59999990463257,"fetchStart":177.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":177.59999990463257,"responseEnd":477.5,"responseStart":477.5,"secureConnectionStart":177.59999990463257},{"duration":854.5999999046326,"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":210.79999995231628,"connectEnd":210.79999995231628,"connectStart":210.79999995231628,"domainLookupEnd":210.79999995231628,"domainLookupStart":210.79999995231628,"fetchStart":210.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":210.79999995231628,"responseEnd":1065.3999998569489,"responseStart":1065.3999998569489,"secureConnectionStart":210.79999995231628},{"duration":856.1000001430511,"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":210.89999985694885,"connectEnd":210.89999985694885,"connectStart":210.89999985694885,"domainLookupEnd":210.89999985694885,"domainLookupStart":210.89999985694885,"fetchStart":210.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":210.89999985694885,"responseEnd":1067,"responseStart":1067,"secureConnectionStart":210.89999985694885},{"duration":354.60000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":662.8999998569489,"connectEnd":662.8999998569489,"connectStart":662.8999998569489,"domainLookupEnd":662.8999998569489,"domainLookupStart":662.8999998569489,"fetchStart":662.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":662.8999998569489,"responseEnd":1017.5,"responseStart":1017.5,"secureConnectionStart":662.8999998569489},{"duration":111.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1063.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1063.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1175.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":27,"responseStart":171,"responseEnd":179,"domLoading":174,"domInteractive":1406,"domContentLoadedEventStart":1407,"domContentLoadedEventEnd":1455,"domComplete":2855,"loadEventStart":2855,"loadEventEnd":2864,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1348.7999999523163},{"name":"bigPipe.sidebar-id.end","time":1349.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1349.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":1364.0999999046326},{"name":"activityTabFullyLoaded","time":1464.0999999046326}],"measures":[],"correlationId":"5f6068f2a5f613","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":88,"dbReadsTimeInMs":10,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}