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":1319.2000007629395,"ttfb":426,"pageVisibility":"visible","entityId":102110,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"29a1bfcc-6d29-47e6-a515-f6f602f18b4b","navigationType":0,"readyForUser":1422.3000001907349,"redirectCount":0,"resourceLoadedEnd":1061.4000005722046,"resourceLoadedStart":437.20000076293945,"resourceTiming":[{"duration":181.89999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":437.20000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":437.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":619.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":182.89999961853027,"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":437.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":437.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":620.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":337.79999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":437.70000076293945,"connectEnd":624.2000007629395,"connectStart":624.2000007629395,"domainLookupEnd":624.2000007629395,"domainLookupStart":624.2000007629395,"fetchStart":437.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":626.1000003814697,"responseEnd":775.5,"responseStart":642.1000003814697,"secureConnectionStart":624.2000007629395},{"duration":540.1999998092651,"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":437.80000019073486,"connectEnd":437.80000019073486,"connectStart":437.80000019073486,"domainLookupEnd":437.80000019073486,"domainLookupStart":437.80000019073486,"fetchStart":437.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":626.4000005722046,"responseEnd":978,"responseStart":652.3000001907349,"secureConnectionStart":437.80000019073486},{"duration":203.80000019073486,"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":438,"connectEnd":438,"connectStart":438,"domainLookupEnd":438,"domainLookupStart":438,"fetchStart":438,"redirectEnd":0,"redirectStart":0,"requestStart":626.5,"responseEnd":641.8000001907349,"responseStart":640.3000001907349,"secureConnectionStart":438},{"duration":207.60000038146973,"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":438.1000003814697,"connectEnd":438.1000003814697,"connectStart":438.1000003814697,"domainLookupEnd":438.1000003814697,"domainLookupStart":438.1000003814697,"fetchStart":438.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":629,"responseEnd":645.7000007629395,"responseStart":643.8000001907349,"secureConnectionStart":438.1000003814697},{"duration":207.5,"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":438.4000005722046,"connectEnd":438.4000005722046,"connectStart":438.4000005722046,"domainLookupEnd":438.4000005722046,"domainLookupStart":438.4000005722046,"fetchStart":438.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":629.3000001907349,"responseEnd":645.9000005722046,"responseStart":644.7000007629395,"secureConnectionStart":438.4000005722046},{"duration":189.60000038146973,"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":438.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":438.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":628.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":216.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":438.70000076293945,"connectEnd":438.70000076293945,"connectStart":438.70000076293945,"domainLookupEnd":438.70000076293945,"domainLookupStart":438.70000076293945,"fetchStart":438.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":630.3000001907349,"responseEnd":655.1000003814697,"responseStart":654,"secureConnectionStart":438.70000076293945},{"duration":190.19999980926514,"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":439.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":439.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":629.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":236.79999923706055,"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":439.70000076293945,"connectEnd":439.70000076293945,"connectStart":439.70000076293945,"domainLookupEnd":439.70000076293945,"domainLookupStart":439.70000076293945,"fetchStart":439.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":660,"responseEnd":676.5,"responseStart":675.4000005722046,"secureConnectionStart":439.70000076293945},{"duration":613.5999994277954,"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":446.4000005722046,"connectEnd":446.4000005722046,"connectStart":446.4000005722046,"domainLookupEnd":446.4000005722046,"domainLookupStart":446.4000005722046,"fetchStart":446.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1047.5,"responseEnd":1060,"responseStart":1059.3000001907349,"secureConnectionStart":446.4000005722046},{"duration":615,"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":446.4000005722046,"connectEnd":446.4000005722046,"connectStart":446.4000005722046,"domainLookupEnd":446.4000005722046,"domainLookupStart":446.4000005722046,"fetchStart":446.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1047.7000007629395,"responseEnd":1061.4000005722046,"responseStart":1060.4000005722046,"secureConnectionStart":446.4000005722046},{"duration":156.4000005722046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":934.5,"connectEnd":934.5,"connectStart":934.5,"domainLookupEnd":934.5,"domainLookupStart":934.5,"fetchStart":934.5,"redirectEnd":0,"redirectStart":0,"requestStart":1047.8000001907349,"responseEnd":1090.9000005722046,"responseStart":1089.8000001907349,"secureConnectionStart":934.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":249,"responseStart":426,"responseEnd":440,"domLoading":431,"domInteractive":1543,"domContentLoadedEventStart":1544,"domContentLoadedEventEnd":1616,"domComplete":2441,"loadEventStart":2441,"loadEventEnd":2441,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1517.6000003814697},{"name":"bigPipe.sidebar-id.end","time":1518.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1518.4000005722046},{"name":"bigPipe.activity-panel-pipe-id.end","time":1519.6000003814697},{"name":"activityTabFullyLoaded","time":1632.3000001907349}],"measures":[],"correlationId":"1c7abbaf0f0dd8","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}