As far as I can tell, column I_S.thread_pool_queues.connection_id is supposed to contain ids of connections that are waiting for available worker threads.
The issue is that I haven't observed any values in this column besides NULL.
That makes it not quite possible to discern connections that are really sleeping from those that have queued queries.
Can be reproduced using official docker image.
MARIADB_VERSION=10.5.12 ./test-in-contaner.sh ./thread-pool-queues.sh > ./result.txt
|
Result:
cat result.txt
|
+----------+----------+----------+---------------+----------------------------+
|
| GROUP_ID | POSITION | PRIORITY | CONNECTION_ID | QUEUEING_TIME_MICROSECONDS |
|
+----------+----------+----------+---------------+----------------------------+
|
| 0 | 0 | 0 | NULL | 18301 |
|
| 0 | 1 | 0 | NULL | 16621 |
|
| 0 | 2 | 0 | NULL | 16214 |
|
| 0 | 3 | 0 | NULL | 15903 |
|
| 0 | 4 | 0 | NULL | 14968 |
|
| 0 | 5 | 0 | NULL | 14366 |
|
| 0 | 6 | 0 | NULL | 12835 |
|
| 0 | 7 | 0 | NULL | 11526 |
|
+----------+----------+----------+---------------+----------------------------+
|
+----------+----------+----------+---------------+----------------------------+
|
| GROUP_ID | POSITION | PRIORITY | CONNECTION_ID | QUEUEING_TIME_MICROSECONDS |
|
+----------+----------+----------+---------------+----------------------------+
|
| 0 | 0 | 1 | NULL | 56000 |
|
| 0 | 1 | 1 | NULL | 56000 |
|
| 0 | 2 | 1 | NULL | 56000 |
|
| 0 | 3 | 1 | NULL | 56000 |
|
| 0 | 4 | 1 | NULL | 56000 |
|
| 0 | 5 | 1 | NULL | 56000 |
|
+----------+----------+----------+---------------+----------------------------+
|
+----------+----------+----------+---------------+----------------------------+
|
| GROUP_ID | POSITION | PRIORITY | CONNECTION_ID | QUEUEING_TIME_MICROSECONDS |
|
+----------+----------+----------+---------------+----------------------------+
|
| 0 | 0 | 1 | NULL | 1068634 |
|
| 0 | 1 | 1 | NULL | 1068634 |
|
| 0 | 2 | 1 | NULL | 1068634 |
|
| 0 | 3 | 1 | NULL | 1068634 |
|
+----------+----------+----------+---------------+----------------------------+
|
+----------+----------+----------+---------------+----------------------------+
|
| GROUP_ID | POSITION | PRIORITY | CONNECTION_ID | QUEUEING_TIME_MICROSECONDS |
|
+----------+----------+----------+---------------+----------------------------+
|
| 0 | 0 | 0 | NULL | 2081406 |
|
| 0 | 1 | 0 | NULL | 2081406 |
|
| 0 | 2 | 0 | NULL | 2081406 |
|
| 0 | 3 | 1 | NULL | 584074 |
|
| 0 | 4 | 1 | NULL | 584074 |
|
| 0 | 5 | 1 | NULL | 584074 |
|
| 0 | 6 | 1 | NULL | 466012 |
|
+----------+----------+----------+---------------+----------------------------+
|
+----------+----------+----------+---------------+----------------------------+
|
| GROUP_ID | POSITION | PRIORITY | CONNECTION_ID | QUEUEING_TIME_MICROSECONDS |
|
+----------+----------+----------+---------------+----------------------------+
|
| 0 | 0 | 0 | NULL | 3093475 |
|
| 0 | 1 | 0 | NULL | 1596143 |
|
| 0 | 2 | 0 | NULL | 1596143 |
|
| 0 | 3 | 0 | NULL | 1596143 |
|
| 0 | 4 | 0 | NULL | 1478081 |
|
| 0 | 5 | 1 | NULL | 920131 |
|
| 0 | 6 | 1 | NULL | 460330 |
|
+----------+----------+----------+---------------+----------------------------+
|
+----------+----------+----------+---------------+----------------------------+
|
| GROUP_ID | POSITION | PRIORITY | CONNECTION_ID | QUEUEING_TIME_MICROSECONDS |
|
+----------+----------+----------+---------------+----------------------------+
|
| 0 | 0 | 0 | NULL | 2608249 |
|
| 0 | 1 | 0 | NULL | 2608249 |
|
| 0 | 2 | 0 | NULL | 2490187 |
|
| 0 | 3 | 0 | NULL | 1932237 |
|
| 0 | 4 | 0 | NULL | 1472436 |
|
| 0 | 5 | 1 | NULL | 836087 |
|
| 0 | 6 | 1 | NULL | 345225 |
|
+----------+----------+----------+---------------+----------------------------+
|
- relates to
-
MDEV-24757
Potential null pointer dereference in I_S.thread_pool_queues
-
-
Closed
{"report":{"fcp":656.7000000476837,"ttfb":146.40000009536743,"pageVisibility":"visible","entityId":102110,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"e9f42b4b-f2f5-478c-bb35-a6dfd7873ded","navigationType":0,"readyForUser":733.1000001430511,"redirectCount":0,"resourceLoadedEnd":647,"resourceLoadedStart":152,"resourceTiming":[{"duration":6.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":152,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":152,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":158.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":7.099999904632568,"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":152.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":152.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":159.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":65.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":152.40000009536743,"connectEnd":152.40000009536743,"connectStart":152.40000009536743,"domainLookupEnd":152.40000009536743,"domainLookupStart":152.40000009536743,"fetchStart":152.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":152.40000009536743,"responseEnd":218,"responseStart":218,"secureConnectionStart":152.40000009536743},{"duration":116.70000004768372,"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":152.5,"connectEnd":152.5,"connectStart":152.5,"domainLookupEnd":152.5,"domainLookupStart":152.5,"fetchStart":152.5,"redirectEnd":0,"redirectStart":0,"requestStart":152.5,"responseEnd":269.2000000476837,"responseStart":269.2000000476837,"secureConnectionStart":152.5},{"duration":120.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":152.70000004768372,"connectEnd":152.70000004768372,"connectStart":152.70000004768372,"domainLookupEnd":152.70000004768372,"domainLookupStart":152.70000004768372,"fetchStart":152.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":152.70000004768372,"responseEnd":273.5,"responseStart":273.5,"secureConnectionStart":152.70000004768372},{"duration":120.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":152.70000004768372,"connectEnd":152.70000004768372,"connectStart":152.70000004768372,"domainLookupEnd":152.70000004768372,"domainLookupStart":152.70000004768372,"fetchStart":152.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":152.70000004768372,"responseEnd":273,"responseStart":273,"secureConnectionStart":152.70000004768372},{"duration":121.29999995231628,"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":152.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":152.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":274.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":120.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":152.90000009536743,"connectEnd":152.90000009536743,"connectStart":152.90000009536743,"domainLookupEnd":152.90000009536743,"domainLookupStart":152.90000009536743,"fetchStart":152.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":152.90000009536743,"responseEnd":273.80000019073486,"responseStart":273.80000019073486,"secureConnectionStart":152.90000009536743},{"duration":121.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":153,"connectEnd":153,"connectStart":153,"domainLookupEnd":153,"domainLookupStart":153,"fetchStart":153,"redirectEnd":0,"redirectStart":0,"requestStart":153,"responseEnd":274.2000000476837,"responseStart":274.2000000476837,"secureConnectionStart":153},{"duration":121.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":153.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":274.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":121.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":153.30000019073486,"connectEnd":153.30000019073486,"connectStart":153.30000019073486,"domainLookupEnd":153.30000019073486,"domainLookupStart":153.30000019073486,"fetchStart":153.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":153.30000019073486,"responseEnd":274.90000009536743,"responseStart":274.90000009536743,"secureConnectionStart":153.30000019073486},{"duration":487,"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":153.90000009536743,"connectEnd":153.90000009536743,"connectStart":153.90000009536743,"domainLookupEnd":153.90000009536743,"domainLookupStart":153.90000009536743,"fetchStart":153.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":153.90000009536743,"responseEnd":640.9000000953674,"responseStart":640.9000000953674,"secureConnectionStart":153.90000009536743},{"duration":492.89999985694885,"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":154.10000014305115,"connectEnd":154.10000014305115,"connectStart":154.10000014305115,"domainLookupEnd":154.10000014305115,"domainLookupStart":154.10000014305115,"fetchStart":154.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":154.10000014305115,"responseEnd":647,"responseStart":647,"secureConnectionStart":154.10000014305115},{"duration":187.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":448.40000009536743,"connectEnd":448.40000009536743,"connectStart":448.40000009536743,"domainLookupEnd":448.40000009536743,"domainLookupStart":448.40000009536743,"fetchStart":448.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":448.40000009536743,"responseEnd":636.2000000476837,"responseStart":636.2000000476837,"secureConnectionStart":448.40000009536743},{"duration":14.700000047683716,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":634.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":634.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":648.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":6,"responseStart":147,"responseEnd":150,"domLoading":150,"domInteractive":859,"domContentLoadedEventStart":859,"domContentLoadedEventEnd":906,"domComplete":1903,"loadEventStart":1903,"loadEventEnd":1904,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":838.8000001907349},{"name":"bigPipe.sidebar-id.end","time":839.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":839.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":842.3000001907349},{"name":"activityTabFullyLoaded","time":917.1000001430511}],"measures":[],"correlationId":"1de34f3d50fd47","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":77,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}