Type:
Bug
Priority:
Minor
Resolution:
Unresolved
Affects Version/s:
10.5 , 10.6 , 10.11 , 11.4 , 11.8
Run with --view-protocol:
create user foo;
grant all on test.* to foo;
--connect (con1,localhost,root,,test)
SELECT CURRENT_USER () AS should_be_root;
--change_user foo
use test;
SELECT CURRENT_USER () AS should_be_foo;
--connection default
DROP USER foo;
main ab468e33aff110b44a31ce0350894906ff4bc757
connect con1,localhost,root,,test;
SELECT CURRENT_USER () AS should_be_root;
should_be_root
root@localhost
use test;
SELECT CURRENT_USER () AS should_be_foo;
should_be_foo
root@localhost
The reason is that MTR creates an extra connection to execute commands eligible for view-protocol when the first such command from a client connection is encountered (in this case, upon the first SELECT), and it keeps using the same connection even after change_user .
If we don't run the first SELECT when the user is still root, and change the user first, then MTR creates a new connection upon the other SELECT in the name of the right user, and it works.
With SET SESSION AUTHORIZATION introduced in MDEV-20299 , the problem is even bigger, because MTR does not notice it even if the context is switched before the very first command, MTR still creates the extra connection in the name of the original user.
relates to
MDEV-20299
SET SESSION AUTHORIZATION
In Testing
There are no comments yet on this issue.
{"report":{"fcp":1371.5999999046326,"ttfb":224.2999997138977,"pageVisibility":"visible","entityId":133508,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2e87f7c8-7d15-45c3-ae75-bbbf40dab0b8","navigationType":0,"readyForUser":1453.0999999046326,"redirectCount":0,"resourceLoadedEnd":1850.2999997138977,"resourceLoadedStart":232,"resourceTiming":[{"duration":495,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":232,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":727,"responseStart":0,"secureConnectionStart":0},{"duration":494.7999997138977,"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":232.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":232.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":727.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":518.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":232.5,"connectEnd":232.5,"connectStart":232.5,"domainLookupEnd":232.5,"domainLookupStart":232.5,"fetchStart":232.5,"redirectEnd":0,"redirectStart":0,"requestStart":232.5,"responseEnd":750.7999997138977,"responseStart":750.7999997138977,"secureConnectionStart":232.5},{"duration":576.3000001907349,"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":232.7999997138977,"connectEnd":232.7999997138977,"connectStart":232.7999997138977,"domainLookupEnd":232.7999997138977,"domainLookupStart":232.7999997138977,"fetchStart":232.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":232.7999997138977,"responseEnd":809.0999999046326,"responseStart":809.0999999046326,"secureConnectionStart":232.7999997138977},{"duration":583.5999999046326,"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":232.90000009536743,"connectEnd":232.90000009536743,"connectStart":232.90000009536743,"domainLookupEnd":232.90000009536743,"domainLookupStart":232.90000009536743,"fetchStart":232.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":232.90000009536743,"responseEnd":816.5,"responseStart":816.4000000953674,"secureConnectionStart":232.90000009536743},{"duration":585.1999998092651,"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":233.09999990463257,"connectEnd":233.09999990463257,"connectStart":233.09999990463257,"domainLookupEnd":233.09999990463257,"domainLookupStart":233.09999990463257,"fetchStart":233.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":233.09999990463257,"responseEnd":818.2999997138977,"responseStart":818.2999997138977,"secureConnectionStart":233.09999990463257},{"duration":587.2000002861023,"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":233.2999997138977,"connectEnd":233.2999997138977,"connectStart":233.2999997138977,"domainLookupEnd":233.2999997138977,"domainLookupStart":233.2999997138977,"fetchStart":233.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":233.2999997138977,"responseEnd":820.5,"responseStart":820.5,"secureConnectionStart":233.2999997138977},{"duration":685.9000000953674,"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":233.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":233.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":919.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":587.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":233.59999990463257,"connectEnd":233.59999990463257,"connectStart":233.59999990463257,"domainLookupEnd":233.59999990463257,"domainLookupStart":233.59999990463257,"fetchStart":233.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":233.59999990463257,"responseEnd":821.1999998092651,"responseStart":821.1999998092651,"secureConnectionStart":233.59999990463257},{"duration":685.8000001907349,"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":233.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":233.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":919.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":587.7999997138977,"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":234,"connectEnd":234,"connectStart":234,"domainLookupEnd":234,"domainLookupStart":234,"fetchStart":234,"redirectEnd":0,"redirectStart":0,"requestStart":234,"responseEnd":821.7999997138977,"responseStart":821.7999997138977,"secureConnectionStart":234},{"duration":1614.7999997138977,"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":234.90000009536743,"connectEnd":234.90000009536743,"connectStart":234.90000009536743,"domainLookupEnd":234.90000009536743,"domainLookupStart":234.90000009536743,"fetchStart":234.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":234.90000009536743,"responseEnd":1849.6999998092651,"responseStart":1849.6999998092651,"secureConnectionStart":234.90000009536743},{"duration":1615.2999997138977,"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":235,"connectEnd":235,"connectStart":235,"domainLookupEnd":235,"domainLookupStart":235,"fetchStart":235,"redirectEnd":0,"redirectStart":0,"requestStart":235,"responseEnd":1850.2999997138977,"responseStart":1850.2999997138977,"secureConnectionStart":235},{"duration":291.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":954.9000000953674,"connectEnd":954.9000000953674,"connectStart":954.9000000953674,"domainLookupEnd":954.9000000953674,"domainLookupStart":954.9000000953674,"fetchStart":954.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":954.9000000953674,"responseEnd":1246.0999999046326,"responseStart":1246.0999999046326,"secureConnectionStart":954.9000000953674},{"duration":594.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1320.5,"connectEnd":1320.5,"connectStart":1320.5,"domainLookupEnd":1320.5,"domainLookupStart":1320.5,"fetchStart":1320.5,"redirectEnd":0,"redirectStart":0,"requestStart":1320.5,"responseEnd":1914.9000000953674,"responseStart":1914.7999997138977,"secureConnectionStart":1320.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":68,"responseStart":224,"responseEnd":226,"domLoading":229,"domInteractive":1900,"domContentLoadedEventStart":1900,"domContentLoadedEventEnd":1964,"domComplete":2504,"loadEventStart":2504,"loadEventEnd":2504,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1869.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1870.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1870.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1871},{"name":"activityTabFullyLoaded","time":1974.0999999046326}],"measures":[],"correlationId":"7f5d246d3f5247","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":95,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}