-
Bug
-
-
Major
-
Resolution:
Duplicate
-
N/A
-
-
-
Output of the test case below
|
# Initial values
|
SELECT @@global.lock_wait_timeout, @@lock_wait_timeout;
|
@@global.lock_wait_timeout @@lock_wait_timeout
|
31536000 31536000
|
#
|
set statement lock_wait_timeout=11 for show global variables like 'lock_wait_timeout';
|
Variable_name Value
|
lock_wait_timeout 31536000
|
SET STATEMENT lock_wait_timeout=12 FOR SELECT SLEEP(2.5);
|
connect con1,localhost,root;
|
#
|
# It's a new connection, so it picked up the current value
|
# of the global variable for the session variable
|
SELECT @@global.lock_wait_timeout, @@lock_wait_timeout;
|
@@global.lock_wait_timeout @@lock_wait_timeout
|
12 12
|
#
|
# Now SET STATEMENT in the other connection ended, so the global value
|
# is back to normal (but the session one is not)
|
SELECT @@global.lock_wait_timeout, @@lock_wait_timeout;
|
@@global.lock_wait_timeout @@lock_wait_timeout
|
31536000 12
|
Test case
|
--enable_connect_log
|
|
--echo # Initial values
|
SELECT @@global.lock_wait_timeout, @@lock_wait_timeout;
|
|
--echo #
|
set statement lock_wait_timeout=11 for show global variables like 'lock_wait_timeout';
|
--send SET STATEMENT lock_wait_timeout=12 FOR SELECT SLEEP(2.5)
|
|
--sleep 1
|
--connect(con1,localhost,root)
|
--echo #
|
--echo # It's a new connection, so it picked up the current value
|
--echo # of the global variable for the session variable
|
SELECT @@global.lock_wait_timeout, @@lock_wait_timeout;
|
--sleep 2
|
--echo #
|
--echo # Now SET STATEMENT in the other connection ended, so the global value
|
--echo # is back to normal (but the session one is not)
|
SELECT @@global.lock_wait_timeout, @@lock_wait_timeout;
|
commit 3a3f88e789a41b309cfe902f4823c9c7ebbce6ca
|
Author: Oleksandr Byelkin <sanja@mariadb.com>
|
Date: Fri Oct 24 10:13:08 2014 +0200
|
|
MDEV-5231: Per query variables from Percona Server (rewritten)
|
{"report":{"fcp":1100.9000000953674,"ttfb":477.09999990463257,"pageVisibility":"visible","entityId":46716,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"e537284c-006a-4db7-867e-dec9c1dfaea3","navigationType":0,"readyForUser":1206,"redirectCount":0,"resourceLoadedEnd":803.4000000953674,"resourceLoadedStart":484.19999980926514,"resourceTiming":[{"duration":72.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":484.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":484.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":556.5,"responseStart":0,"secureConnectionStart":0},{"duration":72.80000019073486,"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":484.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":484.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":557.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":130.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":484.90000009536743,"connectEnd":484.90000009536743,"connectStart":484.90000009536743,"domainLookupEnd":484.90000009536743,"domainLookupStart":484.90000009536743,"fetchStart":484.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":561.9000000953674,"responseEnd":615.4000000953674,"responseStart":574.0999999046326,"secureConnectionStart":484.90000009536743},{"duration":139.09999990463257,"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":485.09999990463257,"connectEnd":485.09999990463257,"connectStart":485.09999990463257,"domainLookupEnd":485.09999990463257,"domainLookupStart":485.09999990463257,"fetchStart":485.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":562.2999997138977,"responseEnd":624.1999998092651,"responseStart":582.5999999046326,"secureConnectionStart":485.09999990463257},{"duration":100,"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":485.19999980926514,"connectEnd":485.19999980926514,"connectStart":485.19999980926514,"domainLookupEnd":485.19999980926514,"domainLookupStart":485.19999980926514,"fetchStart":485.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":562.5,"responseEnd":585.1999998092651,"responseStart":584.4000000953674,"secureConnectionStart":485.19999980926514},{"duration":108.7999997138977,"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":485.40000009536743,"connectEnd":485.40000009536743,"connectStart":485.40000009536743,"domainLookupEnd":485.40000009536743,"domainLookupStart":485.40000009536743,"fetchStart":485.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":564.0999999046326,"responseEnd":594.1999998092651,"responseStart":593.4000000953674,"secureConnectionStart":485.40000009536743},{"duration":109.2999997138977,"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":485.5,"connectEnd":485.5,"connectStart":485.5,"domainLookupEnd":485.5,"domainLookupStart":485.5,"fetchStart":485.5,"redirectEnd":0,"redirectStart":0,"requestStart":564.9000000953674,"responseEnd":594.7999997138977,"responseStart":594.1999998092651,"secureConnectionStart":485.5},{"duration":77.90000009536743,"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":485.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":485.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":563.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":109.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":485.90000009536743,"connectEnd":485.90000009536743,"connectStart":485.90000009536743,"domainLookupEnd":485.90000009536743,"domainLookupStart":485.90000009536743,"fetchStart":485.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":566.0999999046326,"responseEnd":595.4000000953674,"responseStart":594.7999997138977,"secureConnectionStart":485.90000009536743},{"duration":79.40000009536743,"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":486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":565.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":110,"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":486.09999990463257,"connectEnd":486.09999990463257,"connectStart":486.09999990463257,"domainLookupEnd":486.09999990463257,"domainLookupStart":486.09999990463257,"fetchStart":486.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":569.4000000953674,"responseEnd":596.0999999046326,"responseStart":595.5,"secureConnectionStart":486.09999990463257},{"duration":212.59999990463257,"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":496.09999990463257,"connectEnd":696,"connectStart":696,"domainLookupEnd":696,"domainLookupStart":696,"fetchStart":496.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":696.1999998092651,"responseEnd":708.6999998092651,"responseStart":708,"secureConnectionStart":696},{"duration":305.5,"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":497.90000009536743,"connectEnd":497.90000009536743,"connectStart":497.90000009536743,"domainLookupEnd":497.90000009536743,"domainLookupStart":497.90000009536743,"fetchStart":497.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":792.4000000953674,"responseEnd":803.4000000953674,"responseStart":802.5999999046326,"secureConnectionStart":497.90000009536743},{"duration":258.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":808.1999998092651,"connectEnd":808.1999998092651,"connectStart":808.1999998092651,"domainLookupEnd":808.1999998092651,"domainLookupStart":808.1999998092651,"fetchStart":808.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":993.6999998092651,"responseEnd":1066.9000000953674,"responseStart":1064.9000000953674,"secureConnectionStart":808.1999998092651},{"duration":173.19999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1093.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1093.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1266.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":205.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1124.5,"connectEnd":1124.5,"connectStart":1124.5,"domainLookupEnd":1124.5,"domainLookupStart":1124.5,"fetchStart":1124.5,"redirectEnd":0,"redirectStart":0,"requestStart":1285.9000000953674,"responseEnd":1329.9000000953674,"responseStart":1328.7999997138977,"secureConnectionStart":1124.5}],"fetchStart":0,"domainLookupStart":283,"domainLookupEnd":288,"connectStart":288,"connectEnd":307,"secureConnectionStart":296,"requestStart":308,"responseStart":477,"responseEnd":497,"domLoading":480,"domInteractive":1267,"domContentLoadedEventStart":1267,"domContentLoadedEventEnd":1310,"domComplete":1614,"loadEventStart":1614,"loadEventEnd":1616,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1249},{"name":"bigPipe.sidebar-id.end","time":1249.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.start","time":1249.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1250.7999997138977},{"name":"activityTabFullyLoaded","time":1335.5999999046326}],"measures":[],"correlationId":"becaa91d9a93ba","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
In Percona-server it's worse, since the global value does not get restored (see bug#1385352)