Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.5 , 10.6 , 10.11 , 11.4 , 11.8
If an account has a resource limit (in the example below it is MAX_QUERIES_PER_HOUR , I didn't check other values), and the account has used a part or all of this limit, dropping and re-creating the account anew doesn't reset the accumulated value, instead for the newly created account the counting continues from the value where it ended for the old one.
So, in the example below, the account has MAX_QUERIES_PER_HOUR=2 , it runs 3 queries, and the third fails as expected; then the account is re-created, now with MAX_QUERIES_PER_HOUR=4 . The expectation is that it will be able to run 4 queries before reaching the limit, but it can only run one, which together with the previous 3 makes it total of 4, and then it hits ER_USER_LIMIT_REACHED .
create user u@localhost with max_queries_per_hour 2;
--connect (con1,localhost,u,,)
select 1;
select 2;
--error ER_USER_LIMIT_REACHED
select 3;
--disconnect con1
--connection default
drop user u@localhost;
create user u@localhost with max_queries_per_hour 4;
--connect (con1,localhost,u,,)
select 11;
select 12;
select 13;
select 14;
--disconnect con1
--connection default
drop user u@localhost;
main 22efc2c784e1b7199fb5804e6330168277ea7dce
mysqltest: At line 13: query 'select 12' failed: ER_USER_LIMIT_REACHED (1226): User 'u' has exceeded the 'max_queries_per_hour' resource ( current value: 4)
is blocked by
MDEV-35617
DROP USER should leave no active session for that user
In Progress
No workflow transitions have been executed yet.
{"report":{"fcp":747.3999998569489,"ttfb":137.69999980926514,"pageVisibility":"visible","entityId":133555,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"a006eb5e-85ef-4641-aa9c-afbf48a18744","navigationType":0,"readyForUser":826.2999999523163,"redirectCount":0,"resourceLoadedEnd":841.7999999523163,"resourceLoadedStart":143.39999985694885,"resourceTiming":[{"duration":149.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":143.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":143.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":292.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":150.20000004768372,"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":143.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":143.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":293.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":159.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":143.79999995231628,"connectEnd":143.79999995231628,"connectStart":143.79999995231628,"domainLookupEnd":143.79999995231628,"domainLookupStart":143.79999995231628,"fetchStart":143.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":143.79999995231628,"responseEnd":303.09999990463257,"responseStart":303.09999990463257,"secureConnectionStart":143.79999995231628},{"duration":242.60000014305115,"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":143.89999985694885,"connectEnd":143.89999985694885,"connectStart":143.89999985694885,"domainLookupEnd":143.89999985694885,"domainLookupStart":143.89999985694885,"fetchStart":143.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":143.89999985694885,"responseEnd":386.5,"responseStart":386.5,"secureConnectionStart":143.89999985694885},{"duration":246.69999980926514,"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":144,"connectEnd":144,"connectStart":144,"domainLookupEnd":144,"domainLookupStart":144,"fetchStart":144,"redirectEnd":0,"redirectStart":0,"requestStart":144,"responseEnd":390.69999980926514,"responseStart":390.59999990463257,"secureConnectionStart":144},{"duration":247,"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":144.09999990463257,"connectEnd":144.09999990463257,"connectStart":144.09999990463257,"domainLookupEnd":144.09999990463257,"domainLookupStart":144.09999990463257,"fetchStart":144.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":144.09999990463257,"responseEnd":391.09999990463257,"responseStart":391.09999990463257,"secureConnectionStart":144.09999990463257},{"duration":247.20000004768372,"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":144.19999980926514,"connectEnd":144.19999980926514,"connectStart":144.19999980926514,"domainLookupEnd":144.19999980926514,"domainLookupStart":144.19999980926514,"fetchStart":144.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":144.19999980926514,"responseEnd":391.39999985694885,"responseStart":391.39999985694885,"secureConnectionStart":144.19999980926514},{"duration":247.59999990463257,"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":144.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":144.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":391.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":247.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":144.39999985694885,"connectEnd":144.39999985694885,"connectStart":144.39999985694885,"domainLookupEnd":144.39999985694885,"domainLookupStart":144.39999985694885,"fetchStart":144.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":144.39999985694885,"responseEnd":391.7999999523163,"responseStart":391.7999999523163,"secureConnectionStart":144.39999985694885},{"duration":247.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":144.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":144.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":392.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":247.79999995231628,"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":144.59999990463257,"connectEnd":144.59999990463257,"connectStart":144.59999990463257,"domainLookupEnd":144.59999990463257,"domainLookupStart":144.59999990463257,"fetchStart":144.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":144.59999990463257,"responseEnd":392.39999985694885,"responseStart":392.39999985694885,"secureConnectionStart":144.59999990463257},{"duration":452,"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":150.59999990463257,"connectEnd":150.59999990463257,"connectStart":150.59999990463257,"domainLookupEnd":150.59999990463257,"domainLookupStart":150.59999990463257,"fetchStart":150.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":150.59999990463257,"responseEnd":602.5999999046326,"responseStart":602.5999999046326,"secureConnectionStart":150.59999990463257},{"duration":499.2999999523163,"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":152.79999995231628,"connectEnd":152.79999995231628,"connectStart":152.79999995231628,"domainLookupEnd":152.79999995231628,"domainLookupStart":152.79999995231628,"fetchStart":152.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":152.79999995231628,"responseEnd":652.0999999046326,"responseStart":652.0999999046326,"secureConnectionStart":152.79999995231628},{"duration":146.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":456.19999980926514,"connectEnd":456.19999980926514,"connectStart":456.19999980926514,"domainLookupEnd":456.19999980926514,"domainLookupStart":456.19999980926514,"fetchStart":456.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":456.19999980926514,"responseEnd":602.8999998569489,"responseStart":602.8999998569489,"secureConnectionStart":456.19999980926514},{"duration":3.3999998569488525,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":652.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":652.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":655.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":183.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":653.2999999523163,"connectEnd":653.2999999523163,"connectStart":653.2999999523163,"domainLookupEnd":653.2999999523163,"domainLookupStart":653.2999999523163,"fetchStart":653.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":653.2999999523163,"responseEnd":836.5999999046326,"responseStart":836.5999999046326,"secureConnectionStart":653.2999999523163},{"duration":188.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":653.5999999046326,"connectEnd":653.5999999046326,"connectStart":653.5999999046326,"domainLookupEnd":653.5999999046326,"domainLookupStart":653.5999999046326,"fetchStart":653.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":653.5999999046326,"responseEnd":841.7999999523163,"responseStart":841.7999999523163,"secureConnectionStart":653.5999999046326},{"duration":155.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":741.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":741.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":896.8999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":18,"responseStart":138,"responseEnd":153,"domLoading":142,"domInteractive":886,"domContentLoadedEventStart":886,"domContentLoadedEventEnd":931,"domComplete":1175,"loadEventStart":1175,"loadEventEnd":1175,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":862},{"name":"bigPipe.sidebar-id.end","time":862.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":862.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":863.2999999523163},{"name":"activityTabFullyLoaded","time":942.2999999523163}],"measures":[],"correlationId":"c3ddeea1b4864b","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":66,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}