The following test (adapted from innodb.innodb_mysql) reports a timeout for LOCK TABLES:
--source include/have_innodb.inc
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
CREATE TABLE t2 (a INT) ENGINE=InnoDB;
|
SET AUTOCOMMIT=0;
|
INSERT INTO t2 VALUES (1);
|
CONNECT c1,localhost,root,,;
|
SET AUTOCOMMIT=0;
|
SET lock_wait_timeout=1;
|
LOCK TABLES t1 READ, t2 READ;
|
disconnect c1;
|
connection default;
|
DROP TABLE t1,t2;
|
In 10.2, this will fail as follows:
mysqltest: At line 9: query 'LOCK TABLES t1 READ, t2 READ' failed: 1205: Lock wait timeout exceeded; try restarting transaction
|
In MariaDB 10.2, the test innodb.innodb_mysql would hang because a change with the two SET statements below was not merged from MySQL 5.7 commit 704231728c05:
SET @old_lock_wait_timeout= @@lock_wait_timeout;
|
SET lock_wait_timeout= 1;
|
--error ER_LOCK_WAIT_TIMEOUT
|
LOCK TABLES t1 READ, t2 READ;
|
Possibly the following change was merged incorrectly from MySQL 5.7:
WL#6671: Improve scalability by not using thr_lock.c locks for InnoDB tables
It mentions a change to the LOCK TABLES…READ behaviour.
{"report":{"fcp":1130.2999999523163,"ttfb":437.7999999523163,"pageVisibility":"visible","entityId":59466,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"42dbfa56-aa88-41c0-998f-c736cd7e913a","navigationType":0,"readyForUser":1245.5999999046326,"redirectCount":0,"resourceLoadedEnd":1111.5999999046326,"resourceLoadedStart":443.5,"resourceTiming":[{"duration":59.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":443.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":443.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":502.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":59.60000014305115,"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":443.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":443.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":503.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":114.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":444,"connectEnd":444,"connectStart":444,"domainLookupEnd":444,"domainLookupStart":444,"fetchStart":444,"redirectEnd":0,"redirectStart":0,"requestStart":444,"responseEnd":558.9000000953674,"responseStart":558.9000000953674,"secureConnectionStart":444},{"duration":161.5,"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":444.09999990463257,"connectEnd":444.09999990463257,"connectStart":444.09999990463257,"domainLookupEnd":444.09999990463257,"domainLookupStart":444.09999990463257,"fetchStart":444.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":444.09999990463257,"responseEnd":605.5999999046326,"responseStart":605.5999999046326,"secureConnectionStart":444.09999990463257},{"duration":165.5,"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":444.2000000476837,"connectEnd":444.2000000476837,"connectStart":444.2000000476837,"domainLookupEnd":444.2000000476837,"domainLookupStart":444.2000000476837,"fetchStart":444.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":444.2000000476837,"responseEnd":609.7000000476837,"responseStart":609.7000000476837,"secureConnectionStart":444.2000000476837},{"duration":166.70000004768372,"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":444.2999999523163,"connectEnd":444.2999999523163,"connectStart":444.2999999523163,"domainLookupEnd":444.2999999523163,"domainLookupStart":444.2999999523163,"fetchStart":444.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":444.2999999523163,"responseEnd":611,"responseStart":611,"secureConnectionStart":444.2999999523163},{"duration":166.89999985694885,"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":444.40000009536743,"connectEnd":444.40000009536743,"connectStart":444.40000009536743,"domainLookupEnd":444.40000009536743,"domainLookupStart":444.40000009536743,"fetchStart":444.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":444.40000009536743,"responseEnd":611.2999999523163,"responseStart":611.2999999523163,"secureConnectionStart":444.40000009536743},{"duration":167.60000014305115,"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":444.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":444.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":612.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":167.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":444.59999990463257,"connectEnd":444.59999990463257,"connectStart":444.59999990463257,"domainLookupEnd":444.59999990463257,"domainLookupStart":444.59999990463257,"fetchStart":444.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":444.59999990463257,"responseEnd":612.5,"responseStart":612.5,"secureConnectionStart":444.59999990463257},{"duration":169.59999990463257,"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":444.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":444.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":614.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":170,"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":444.90000009536743,"connectEnd":444.90000009536743,"connectStart":444.90000009536743,"domainLookupEnd":444.90000009536743,"domainLookupStart":444.90000009536743,"fetchStart":444.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":444.90000009536743,"responseEnd":614.9000000953674,"responseStart":614.9000000953674,"secureConnectionStart":444.90000009536743},{"duration":405.7000000476837,"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":483.2000000476837,"connectEnd":483.2000000476837,"connectStart":483.2000000476837,"domainLookupEnd":483.2000000476837,"domainLookupStart":483.2000000476837,"fetchStart":483.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":483.2000000476837,"responseEnd":888.9000000953674,"responseStart":888.9000000953674,"secureConnectionStart":483.2000000476837},{"duration":627.1999998092651,"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":484.40000009536743,"connectEnd":484.40000009536743,"connectStart":484.40000009536743,"domainLookupEnd":484.40000009536743,"domainLookupStart":484.40000009536743,"fetchStart":484.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":484.40000009536743,"responseEnd":1111.5999999046326,"responseStart":1111.5999999046326,"secureConnectionStart":484.40000009536743},{"duration":267.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":844,"connectEnd":844,"connectStart":844,"domainLookupEnd":844,"domainLookupStart":844,"fetchStart":844,"redirectEnd":0,"redirectStart":0,"requestStart":844,"responseEnd":1111.2000000476837,"responseStart":1111.2000000476837,"secureConnectionStart":844},{"duration":140.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1087.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1087.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1227.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":46,"responseStart":438,"responseEnd":484,"domLoading":442,"domInteractive":1351,"domContentLoadedEventStart":1351,"domContentLoadedEventEnd":1407,"domComplete":2296,"loadEventStart":2296,"loadEventEnd":2297,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1302.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1303.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1303.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1306.4000000953674},{"name":"activityTabFullyLoaded","time":1413.9000000953674}],"measures":[],"correlationId":"ac9f8ccf41b572","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":64,"dbReadsTimeInMs":8,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}