The test case is non-deterministic, run with large enough --repeat=N. It usually fails for me in 10-20 attempts, but it can vary a lot.
--source include/have_innodb.inc
|
--source include/have_sequence.inc
|
|
CREATE TABLE t1 (a INT, b INT, c INT, KEY(b)) ENGINE=InnoDB;
|
INSERT INTO t1 (a, b) SELECT seq, seq FROM seq_0_to_9;
|
ALTER TABLE t1 ADD FOREIGN KEY (a) REFERENCES t1 (b);
|
|
CREATE TABLE t2 (f INT) ENGINE=InnoDB;
|
INSERT INTO t2 SELECT seq%10 FROM seq_1_to_1000;
|
|
--connect (con1,localhost,root,,test)
|
ALTER TABLE t2 ADD FOREIGN KEY (f) REFERENCES t1 (a);
|
--send
|
INSERT INTO t2 SELECT * FROM t2;
|
|
--connection default
|
--error 0,ER_LOCK_DEADLOCK
|
ALTER TABLE t1 ADD INDEX (c);
|
--error 0,ER_LOCK_DEADLOCK
|
ALTER TABLE t1 ADD x INT;
|
|
# Cleanup
|
--connection con1
|
--reap
|
DROP TABLE t2, t1;
|
--disconnect con1
|
10.6 fae0ccad
|
2022-04-23 19:23:03 0x7fc3c8788700 InnoDB: Assertion failure in file /data/src/10.6/storage/innobase/dict/dict0dict.cc line 4497
|
|
#6 0x000055c732385105 in ut_dbg_assertion_failed (expr=0x0, file=0x55c732ac3420 "/data/src/10.6/storage/innobase/dict/dict0dict.cc", line=4497) at /data/src/10.6/storage/innobase/ut/ut0dbg.cc:60
|
#7 0x000055c732442623 in dict_table_check_for_dup_indexes (table=0x7fc374b8d038, check=CHECK_ABORTED_OK) at /data/src/10.6/storage/innobase/dict/dict0dict.cc:4497
|
#8 0x000055c732158b44 in ha_innobase::prepare_inplace_alter_table (this=0x7fc374b91440, altered_table=0x7fc3c87842f0, ha_alter_info=0x7fc3c8784230) at /data/src/10.6/storage/innobase/handler/handler0alter.cc:7557
|
#9 0x000055c731d04524 in handler::ha_prepare_inplace_alter_table (this=0x7fc374b91440, altered_table=0x7fc3c87842f0, ha_alter_info=0x7fc3c8784230) at /data/src/10.6/sql/handler.cc:5198
|
#10 0x000055c731a66169 in mysql_inplace_alter_table (thd=0x7fc374000db8, table_list=0x7fc374015698, table=0x7fc374b8f628, altered_table=0x7fc3c87842f0, ha_alter_info=0x7fc3c8784230, target_mdl_request=0x7fc3c8784b30, ddl_log_state=0x7fc3c87841d0, trigger_param=0x7fc3c87846e0, alter_ctx=0x7fc3c8785690) at /data/src/10.6/sql/sql_table.cc:7359
|
#11 0x000055c731a6f0da in mysql_alter_table (thd=0x7fc374000db8, new_db=0x7fc3740059b8, new_name=0x7fc374005dd0, create_info=0x7fc3c87864a0, table_list=0x7fc374015698, alter_info=0x7fc3c87863b0, order_num=0, order=0x0, ignore=false, if_exists=false) at /data/src/10.6/sql/sql_table.cc:10267
|
#12 0x000055c731b22c9c in Sql_cmd_alter_table::execute (this=0x7fc374015e90, thd=0x7fc374000db8) at /data/src/10.6/sql/sql_alter.cc:542
|
#13 0x000055c73196cd14 in mysql_execute_command (thd=0x7fc374000db8, is_called_from_prepared_stmt=false) at /data/src/10.6/sql/sql_parse.cc:6012
|
#14 0x000055c731972d72 in mysql_parse (thd=0x7fc374000db8, rawbuf=0x7fc3740155c0 "ALTER TABLE t1 ADD x INT", length=24, parser_state=0x7fc3c8787500) at /data/src/10.6/sql/sql_parse.cc:8045
|
#15 0x000055c73195f3c5 in dispatch_command (command=COM_QUERY, thd=0x7fc374000db8, packet=0x7fc37400b879 "ALTER TABLE t1 ADD x INT", packet_length=24, blocking=true) at /data/src/10.6/sql/sql_parse.cc:1912
|
#16 0x000055c73195dcf2 in do_command (thd=0x7fc374000db8, blocking=true) at /data/src/10.6/sql/sql_parse.cc:1409
|
#17 0x000055c731b17c66 in do_handle_one_connection (connect=0x55c734728d88, put_in_cache=true) at /data/src/10.6/sql/sql_connect.cc:1418
|
#18 0x000055c731b17905 in handle_one_connection (arg=0x55c73461d9d8) at /data/src/10.6/sql/sql_connect.cc:1312
|
#19 0x000055c73203218c in pfs_spawn_thread (arg=0x55c7346201c8) at /data/src/10.6/storage/perfschema/pfs.cc:2201
|
#20 0x00007fc3cf8bcea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#21 0x00007fc3cf4b9def in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Nothing happens on a non-debug build, but it doesn't mean much given the concurrency.
Not reproducible on 10.5.
{"report":{"fcp":1818.5999999046326,"ttfb":571.0999999046326,"pageVisibility":"visible","entityId":110269,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ef815a97-b5d4-4bc9-a453-090babc2cdd2","navigationType":0,"readyForUser":1912.6999998092651,"redirectCount":0,"resourceLoadedEnd":2472.699999809265,"resourceLoadedStart":584.1999998092651,"resourceTiming":[{"duration":594.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":584.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":584.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1178.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":594.8999996185303,"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":584.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":584.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1179.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":664.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":584.6999998092651,"connectEnd":584.6999998092651,"connectStart":584.6999998092651,"domainLookupEnd":584.6999998092651,"domainLookupStart":584.6999998092651,"fetchStart":584.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":584.6999998092651,"responseEnd":1249.5999999046326,"responseStart":1249.5999999046326,"secureConnectionStart":584.6999998092651},{"duration":747.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":584.8999996185303,"connectEnd":584.8999996185303,"connectStart":584.8999996185303,"domainLookupEnd":584.8999996185303,"domainLookupStart":584.8999996185303,"fetchStart":584.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":584.8999996185303,"responseEnd":1332.1999998092651,"responseStart":1332.1999998092651,"secureConnectionStart":584.8999996185303},{"duration":783.5,"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":585,"connectEnd":585,"connectStart":585,"domainLookupEnd":585,"domainLookupStart":585,"fetchStart":585,"redirectEnd":0,"redirectStart":0,"requestStart":585,"responseEnd":1368.5,"responseStart":1368.5,"secureConnectionStart":585},{"duration":784.5999999046326,"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":585.1999998092651,"connectEnd":585.1999998092651,"connectStart":585.1999998092651,"domainLookupEnd":585.1999998092651,"domainLookupStart":585.1999998092651,"fetchStart":585.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":585.1999998092651,"responseEnd":1369.7999997138977,"responseStart":1369.7999997138977,"secureConnectionStart":585.1999998092651},{"duration":784.7999997138977,"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":585.5,"connectEnd":585.5,"connectStart":585.5,"domainLookupEnd":585.5,"domainLookupStart":585.5,"fetchStart":585.5,"redirectEnd":0,"redirectStart":0,"requestStart":585.5,"responseEnd":1370.2999997138977,"responseStart":1370.2999997138977,"secureConnectionStart":585.5},{"duration":857.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":585.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":585.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1443.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":811.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":585.7999997138977,"connectEnd":585.7999997138977,"connectStart":585.7999997138977,"domainLookupEnd":585.7999997138977,"domainLookupStart":585.7999997138977,"fetchStart":585.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":585.7999997138977,"responseEnd":1397.0999999046326,"responseStart":1397.0999999046326,"secureConnectionStart":585.7999997138977},{"duration":857.8999996185303,"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":586,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":586,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1443.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":811.6999998092651,"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":586.0999999046326,"connectEnd":586.0999999046326,"connectStart":586.0999999046326,"domainLookupEnd":586.0999999046326,"domainLookupStart":586.0999999046326,"fetchStart":586.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":586.0999999046326,"responseEnd":1397.7999997138977,"responseStart":1397.7999997138977,"secureConnectionStart":586.0999999046326},{"duration":1885.1999998092651,"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":587,"connectEnd":587,"connectStart":587,"domainLookupEnd":587,"domainLookupStart":587,"fetchStart":587,"redirectEnd":0,"redirectStart":0,"requestStart":587,"responseEnd":2472.199999809265,"responseStart":2472.199999809265,"secureConnectionStart":587},{"duration":1885.5999999046326,"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":587.0999999046326,"connectEnd":587.0999999046326,"connectStart":587.0999999046326,"domainLookupEnd":587.0999999046326,"domainLookupStart":587.0999999046326,"fetchStart":587.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":587.0999999046326,"responseEnd":2472.699999809265,"responseStart":2472.699999809265,"secureConnectionStart":587.0999999046326},{"duration":422.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1479.5999999046326,"connectEnd":1479.5999999046326,"connectStart":1479.5999999046326,"domainLookupEnd":1479.5999999046326,"domainLookupStart":1479.5999999046326,"fetchStart":1479.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1479.5999999046326,"responseEnd":1902.5,"responseStart":1902.5,"secureConnectionStart":1479.5999999046326},{"duration":686.2000002861023,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1810.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1810.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2497.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":634.5999999046326,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":1960.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1960.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2595.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":634.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1961.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1961.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2595.699999809265,"responseStart":0,"secureConnectionStart":0},{"duration":631.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":1962.2999997138977,"connectEnd":1962.2999997138977,"connectStart":1962.2999997138977,"domainLookupEnd":1962.2999997138977,"domainLookupStart":1962.2999997138977,"fetchStart":1962.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":1962.2999997138977,"responseEnd":2593.699999809265,"responseStart":2593.699999809265,"secureConnectionStart":1962.2999997138977},{"duration":637.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":1962.8999996185303,"connectEnd":1962.8999996185303,"connectStart":1962.8999996185303,"domainLookupEnd":1962.8999996185303,"domainLookupStart":1962.8999996185303,"fetchStart":1962.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1962.8999996185303,"responseEnd":2600.3999996185303,"responseStart":2600.3999996185303,"secureConnectionStart":1962.8999996185303}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":407,"responseStart":571,"responseEnd":577,"domLoading":581,"domInteractive":2546,"domContentLoadedEventStart":2546,"domContentLoadedEventEnd":2595,"domComplete":3652,"loadEventStart":3652,"loadEventEnd":3654,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2479.7999997138977},{"name":"bigPipe.sidebar-id.end","time":2480.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":2480.7999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":2483.5},{"name":"activityTabFullyLoaded","time":2604.2999997138977}],"measures":[],"correlationId":"eb45d082253e7d","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":14,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}