--source include/have_innodb.inc
|
--source include/have_partition.inc
|
|
CREATE TABLE t1 (pk INT AUTO_INCREMENT PRIMARY KEY) ENGINE=InnoDB PARTITION BY key (pk) PARTITIONS 2;
|
|
CREATE TABLE t2 (a INT) ENGINE=InnoDB;
|
INSERT INTO t2 VALUES (1),(2),(3),(4),(5),(6);
|
|
CREATE TABLE t3 (b INT) ENGINE=InnoDB;
|
INSERT INTO t3 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9);
|
|
--connect (con1,localhost,root,,test)
|
--send
|
INSERT t1 SELECT NULL FROM t2;
|
|
--connection default
|
--error 0,ER_LOCK_DEADLOCK
|
INSERT t1 SELECT NULL FROM t3;
|
|
--connection con1
|
--error 0,ER_LOCK_DEADLOCK
|
--reap
|
|
# Cleanup
|
--disconnect con1
|
--connection default
|
DROP TABLE t1, t2, t3;
|
10.1 1d10c9afe0f2f
|
line
|
InnoDB: Error: trx already had an AUTO-INC lock!
|
^ Found warnings in /data/bld/10.1/mysql-test/var/log/mysqld.1.err
|
ok
|
The error started appearing in 10.1 tree with this commit:
commit 723f87e9d318aedad30dfb9dde104312d6612662
|
Author: Marko Mäkelä
|
Date: Wed Mar 14 09:39:47 2018 +0200
|
|
lock_table_create(), lock_rec_create(): Clean up the WSREP code
|
|
By definition, c_lock->trx->lock.wait_lock==c_lock cannot hold.
|
That is, the owner transaction of a lock cannot be waiting for that
|
particular lock. It must have been waiting for some other lock.
|
Remove the dead code related to that. Also, test c_lock for NULLness
|
only once.
|
- duplicates
-
MDEV-13333
Deadlock failure that does not occur elsewhere
-
-
Closed
{"report":{"fcp":1081.0999999046326,"ttfb":158.5,"pageVisibility":"visible","entityId":68589,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b7cf4459-f533-40ac-a140-3f3f990739f1","navigationType":0,"readyForUser":1164.1999998092651,"redirectCount":0,"resourceLoadedEnd":821.5,"resourceLoadedStart":163.79999995231628,"resourceTiming":[{"duration":481.7000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":163.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":645.5,"responseStart":0,"secureConnectionStart":0},{"duration":481.5,"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":164.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":645.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":491,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":164.19999980926514,"connectEnd":164.19999980926514,"connectStart":164.19999980926514,"domainLookupEnd":164.19999980926514,"domainLookupStart":164.19999980926514,"fetchStart":164.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":164.19999980926514,"responseEnd":655.1999998092651,"responseStart":655.1999998092651,"secureConnectionStart":164.19999980926514},{"duration":515,"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":164.29999995231628,"connectEnd":164.29999995231628,"connectStart":164.29999995231628,"domainLookupEnd":164.29999995231628,"domainLookupStart":164.29999995231628,"fetchStart":164.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":164.29999995231628,"responseEnd":679.2999999523163,"responseStart":679.2999999523163,"secureConnectionStart":164.29999995231628},{"duration":518.1000001430511,"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":164.39999985694885,"connectEnd":164.39999985694885,"connectStart":164.39999985694885,"domainLookupEnd":164.39999985694885,"domainLookupStart":164.39999985694885,"fetchStart":164.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":164.39999985694885,"responseEnd":682.5,"responseStart":682.5,"secureConnectionStart":164.39999985694885},{"duration":518.3999998569489,"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":164.5,"connectEnd":164.5,"connectStart":164.5,"domainLookupEnd":164.5,"domainLookupStart":164.5,"fetchStart":164.5,"redirectEnd":0,"redirectStart":0,"requestStart":164.5,"responseEnd":682.8999998569489,"responseStart":682.8999998569489,"secureConnectionStart":164.5},{"duration":518.7000000476837,"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":164.59999990463257,"connectEnd":164.59999990463257,"connectStart":164.59999990463257,"domainLookupEnd":164.59999990463257,"domainLookupStart":164.59999990463257,"fetchStart":164.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":164.59999990463257,"responseEnd":683.2999999523163,"responseStart":683.2999999523163,"secureConnectionStart":164.59999990463257},{"duration":519.1000001430511,"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":164.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":683.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":519,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":164.79999995231628,"connectEnd":164.79999995231628,"connectStart":164.79999995231628,"domainLookupEnd":164.79999995231628,"domainLookupStart":164.79999995231628,"fetchStart":164.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":164.79999995231628,"responseEnd":683.7999999523163,"responseStart":683.7999999523163,"secureConnectionStart":164.79999995231628},{"duration":519.4000000953674,"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":164.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":164.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":684.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":519.2999999523163,"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":165,"connectEnd":165,"connectStart":165,"domainLookupEnd":165,"domainLookupStart":165,"fetchStart":165,"redirectEnd":0,"redirectStart":0,"requestStart":165,"responseEnd":684.2999999523163,"responseStart":684.2999999523163,"secureConnectionStart":165},{"duration":581.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":165.69999980926514,"connectEnd":165.69999980926514,"connectStart":165.69999980926514,"domainLookupEnd":165.69999980926514,"domainLookupStart":165.69999980926514,"fetchStart":165.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":165.69999980926514,"responseEnd":747.3999998569489,"responseStart":747.3999998569489,"secureConnectionStart":165.69999980926514},{"duration":651.4000000953674,"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":170.09999990463257,"connectEnd":170.09999990463257,"connectStart":170.09999990463257,"domainLookupEnd":170.09999990463257,"domainLookupStart":170.09999990463257,"fetchStart":170.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":170.09999990463257,"responseEnd":821.5,"responseStart":821.5,"secureConnectionStart":170.09999990463257},{"duration":401.7000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":892.3999998569489,"connectEnd":892.3999998569489,"connectStart":892.3999998569489,"domainLookupEnd":892.3999998569489,"domainLookupStart":892.3999998569489,"fetchStart":892.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":892.3999998569489,"responseEnd":1294.0999999046326,"responseStart":1294.0999999046326,"secureConnectionStart":892.3999998569489}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":17,"responseStart":158,"responseEnd":163,"domLoading":161,"domInteractive":1267,"domContentLoadedEventStart":1267,"domContentLoadedEventEnd":1306,"domComplete":2212,"loadEventStart":2212,"loadEventEnd":2213,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1240.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1241.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":1241.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1244.1999998092651},{"name":"activityTabFullyLoaded","time":1312.7999999523163}],"measures":[],"correlationId":"698af2badacff6","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":78,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}