According to the KB the P_S.THREADS.CONNECTION_TYPE column should show NULL for background threads, and the source code has these possible states:
static const LEX_CSTRING vio_type_names[] =
|
{
|
{ STRING_WITH_LEN("Error") }, // cannot happen
|
{ STRING_WITH_LEN("TCP/IP") },
|
{ STRING_WITH_LEN("Socket") },
|
{ STRING_WITH_LEN("Named Pipe") },
|
{ STRING_WITH_LEN("SSL/TLS") },
|
{ STRING_WITH_LEN("Shared Memory") }
|
};
|
Yet it actually indeed shows "Error" instead of "NULL":
MariaDB [performance_schema]> select name, connection_type from threads where type="BACKGROUND";
|
+-----------------------------------+-----------------+
|
| name | connection_type |
|
+-----------------------------------+-----------------+
|
| thread/sql/main | Error |
|
| thread/mysys/statement_timer | Error |
|
| thread/aria/checkpoint_background | Error |
|
| thread/innodb/page_cleaner_thread | Error |
|
| thread/innodb/thread_pool_thread | Error |
|
| thread/innodb/thread_pool_thread | Error |
|
| thread/innodb/thread_pool_thread | Error |
|
| thread/innodb/thread_pool_thread | Error |
|
| thread/innodb/thread_pool_thread | Error |
|
| thread/innodb/thread_pool_thread | Error |
|
| thread/sql/signal_handler | Error |
|
| thread/sql/manager | Error |
|
+-----------------------------------+-----------------+
|
{"report":{"fcp":750.6999998092651,"ttfb":236.19999980926514,"pageVisibility":"visible","entityId":109645,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"c925b097-7312-4b79-a1c4-94feb37af19a","navigationType":0,"readyForUser":813.7999992370605,"redirectCount":0,"resourceLoadedEnd":568.2999992370605,"resourceLoadedStart":242,"resourceTiming":[{"duration":25,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":242,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":267,"responseStart":0,"secureConnectionStart":0},{"duration":25.100000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":242.29999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":267.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":65.59999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":242.5,"connectEnd":242.5,"connectStart":242.5,"domainLookupEnd":242.5,"domainLookupStart":242.5,"fetchStart":242.5,"redirectEnd":0,"redirectStart":0,"requestStart":270.0999994277954,"responseEnd":308.0999994277954,"responseStart":283.5999994277954,"secureConnectionStart":242.5},{"duration":76.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":242.5999994277954,"connectEnd":242.5999994277954,"connectStart":242.5999994277954,"domainLookupEnd":242.5999994277954,"domainLookupStart":242.5999994277954,"fetchStart":242.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":270.29999923706055,"responseEnd":319.29999923706055,"responseStart":288,"secureConnectionStart":242.5999994277954},{"duration":52.90000057220459,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":242.79999923706055,"connectEnd":242.79999923706055,"connectStart":242.79999923706055,"domainLookupEnd":242.79999923706055,"domainLookupStart":242.79999923706055,"fetchStart":242.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":275.19999980926514,"responseEnd":295.69999980926514,"responseStart":295.0999994277954,"secureConnectionStart":242.79999923706055},{"duration":57.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":243,"connectEnd":243,"connectStart":243,"domainLookupEnd":243,"domainLookupStart":243,"fetchStart":243,"redirectEnd":0,"redirectStart":0,"requestStart":276.3999996185303,"responseEnd":300.19999980926514,"responseStart":299.5,"secureConnectionStart":243},{"duration":56.40000057220459,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":243.0999994277954,"connectEnd":243.0999994277954,"connectStart":243.0999994277954,"domainLookupEnd":243.0999994277954,"domainLookupStart":243.0999994277954,"fetchStart":243.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":276.5999994277954,"responseEnd":299.5,"responseStart":298.8999996185303,"secureConnectionStart":243.0999994277954},{"duration":31.600000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":243.29999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":274.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":55.29999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":243.5,"connectEnd":243.5,"connectStart":243.5,"domainLookupEnd":243.5,"domainLookupStart":243.5,"fetchStart":243.5,"redirectEnd":0,"redirectStart":0,"requestStart":277.0999994277954,"responseEnd":298.79999923706055,"responseStart":298.0999994277954,"secureConnectionStart":243.5},{"duration":32.39999961853027,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":243.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":276.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":53.40000057220459,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":243.79999923706055,"connectEnd":280.5999994277954,"connectStart":280.5999994277954,"domainLookupEnd":280.5999994277954,"domainLookupStart":280.5999994277954,"fetchStart":243.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":282.5,"responseEnd":297.19999980926514,"responseStart":294,"secureConnectionStart":280.5999994277954},{"duration":310.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":252.5999994277954,"connectEnd":252.5999994277954,"connectStart":252.5999994277954,"domainLookupEnd":252.5999994277954,"domainLookupStart":252.5999994277954,"fetchStart":252.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":359.5,"responseEnd":563,"responseStart":556.1999998092651,"secureConnectionStart":252.5999994277954},{"duration":315.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":252.79999923706055,"connectEnd":252.79999923706055,"connectStart":252.79999923706055,"domainLookupEnd":252.79999923706055,"domainLookupStart":252.79999923706055,"fetchStart":252.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":505.3999996185303,"responseEnd":568.2999992370605,"responseStart":565.0999994277954,"secureConnectionStart":252.79999923706055},{"duration":195.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":502.29999923706055,"connectEnd":502.29999923706055,"connectStart":502.29999923706055,"domainLookupEnd":502.29999923706055,"domainLookupStart":502.29999923706055,"fetchStart":502.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":661.8999996185303,"responseEnd":697.5999994277954,"responseStart":696.5,"secureConnectionStart":502.29999923706055}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":68,"responseStart":236,"responseEnd":252,"domLoading":239,"domInteractive":863,"domContentLoadedEventStart":863,"domContentLoadedEventEnd":896,"domComplete":1393,"loadEventStart":1393,"loadEventEnd":1393,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":848.1999998092651},{"name":"bigPipe.sidebar-id.end","time":849},{"name":"bigPipe.activity-panel-pipe-id.start","time":849.0999994277954},{"name":"bigPipe.activity-panel-pipe-id.end","time":849.8999996185303},{"name":"activityTabFullyLoaded","time":908.3999996185303}],"measures":[],"correlationId":"f026c20e9a105d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":16,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
versions older than 10.5 are not affected as the column was first added there
I also tested the first 10.5 GA, it has been "Error" instead of NULL from the very beginning