-
Bug
-
-
Major
-
Resolution:
Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
-
-
-
--source include/have_innodb.inc
|
|
CREATE TABLE t1 (f1 INT, f2 INT, f3 INT, KEY(f1)) ENGINE=InnoDB;
|
CREATE TABLE t2 (f INT, KEY(f)) ENGINE=InnoDB;
|
|
ALTER TABLE t1 ADD FOREIGN KEY (f2) REFERENCES t2 (f);
|
ALTER IGNORE TABLE t1 ADD FOREIGN KEY (f3) REFERENCES t1 (f1), ALGORITHM=COPY;
|
|
# Cleanup
|
DROP TABLE t1, t2;
|
10.0 802ce9672f
|
CURRENT_TEST: bug.t5a
|
mysqltest: At line 7: query 'ALTER IGNORE TABLE t1 ADD FOREIGN KEY (f3) REFERENCES t1 (f1), ALGORITHM=COPY' failed: 1050: Table './test/t1' already exists
|
2019-01-05 00:14:36 7f391882c700 InnoDB: Error; possible reasons:
|
InnoDB: 1) Table rename would cause two FOREIGN KEY constraints
|
InnoDB: to have the same internal name in case-insensitive comparison.
|
InnoDB: 2) table `test`.`t1` exists in the InnoDB internal data
|
InnoDB: dictionary though MySQL is trying to rename table `test`.`#sql-5a68_3` to it.
|
InnoDB: Have you deleted the .frm file and not used DROP TABLE?
|
InnoDB: You can look for further help from
|
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting.html
|
InnoDB: If table `test`.`t1` is a temporary table #sql..., then it can be that
|
InnoDB: there are still queries running on the table, and it will be
|
InnoDB: dropped automatically when the queries end.
|
InnoDB: You can drop the orphaned table inside InnoDB by
|
InnoDB: creating an InnoDB table with the same name in another
|
InnoDB: database and copying the .frm file to the current database.
|
InnoDB: Then MySQL thinks the table exists, and DROP TABLE will
|
InnoDB: succeed.
|
Also reproducible on MySQL 5.6.
MySQL 5.7 doesn't understand ALTER IGNORE, so the test case is not applicable.
- relates to
-
MDEV-18221
Failed to execute action for entry = ... from ddl log upon normal shutdown while running ALTER .. PARTITION
-
-
Open
{"report":{"fcp":796.0999999642372,"ttfb":201.19999998807907,"pageVisibility":"visible","entityId":71673,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"a0a91f94-0b35-40e6-94e0-f39524bd7866","navigationType":0,"readyForUser":915.3000000119209,"redirectCount":0,"resourceLoadedEnd":518.6999999880791,"resourceLoadedStart":208.5,"resourceTiming":[{"duration":12.699999988079071,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":208.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":13,"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":208.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":221.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":182.0999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":209,"connectEnd":209,"connectStart":209,"domainLookupEnd":209,"domainLookupStart":209,"fetchStart":209,"redirectEnd":0,"redirectStart":0,"requestStart":225.0999999642372,"responseEnd":391.0999999642372,"responseStart":243.5,"secureConnectionStart":209},{"duration":309.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":209.19999998807907,"connectEnd":209.19999998807907,"connectStart":209.19999998807907,"domainLookupEnd":209.19999998807907,"domainLookupStart":209.19999998807907,"fetchStart":209.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":227.5999999642372,"responseEnd":518.6999999880791,"responseStart":244.39999997615814,"secureConnectionStart":209.19999998807907},{"duration":41.10000002384186,"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":209.39999997615814,"connectEnd":209.39999997615814,"connectStart":209.39999997615814,"domainLookupEnd":209.39999997615814,"domainLookupStart":209.39999997615814,"fetchStart":209.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":228.0999999642372,"responseEnd":250.5,"responseStart":249.19999998807907,"secureConnectionStart":209.39999997615814},{"duration":42.10000002384186,"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":209.5999999642372,"connectEnd":209.5999999642372,"connectStart":209.5999999642372,"domainLookupEnd":209.5999999642372,"domainLookupStart":209.5999999642372,"fetchStart":209.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":228.5999999642372,"responseEnd":251.69999998807907,"responseStart":250.69999998807907,"secureConnectionStart":209.5999999642372},{"duration":47.10000002384186,"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":209.69999998807907,"connectEnd":209.69999998807907,"connectStart":209.69999998807907,"domainLookupEnd":209.69999998807907,"domainLookupStart":209.69999998807907,"fetchStart":209.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":231.89999997615814,"responseEnd":256.80000001192093,"responseStart":253.19999998807907,"secureConnectionStart":209.69999998807907},{"duration":17.5,"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":209.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":227.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":51,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":210.0999999642372,"connectEnd":210.0999999642372,"connectStart":210.0999999642372,"domainLookupEnd":210.0999999642372,"domainLookupStart":210.0999999642372,"fetchStart":210.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":233.5,"responseEnd":261.0999999642372,"responseStart":257,"secureConnectionStart":210.0999999642372},{"duration":18.5,"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":210.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":228.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":51.80000001192093,"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":210.39999997615814,"connectEnd":210.39999997615814,"connectStart":210.39999997615814,"domainLookupEnd":210.39999997615814,"domainLookupStart":210.39999997615814,"fetchStart":210.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":233.5999999642372,"responseEnd":262.19999998807907,"responseStart":257.5999999642372,"secureConnectionStart":210.39999997615814},{"duration":277.5999999642372,"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":238,"connectEnd":238,"connectStart":238,"domainLookupEnd":238,"domainLookupStart":238,"fetchStart":238,"redirectEnd":0,"redirectStart":0,"requestStart":247.39999997615814,"responseEnd":515.5999999642372,"responseStart":510.69999998807907,"secureConnectionStart":238},{"duration":277.60000002384186,"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":238.19999998807907,"connectEnd":238.19999998807907,"connectStart":238.19999998807907,"domainLookupEnd":238.19999998807907,"domainLookupStart":238.19999998807907,"fetchStart":238.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":249,"responseEnd":515.8000000119209,"responseStart":511.30000001192093,"secureConnectionStart":238.19999998807907},{"duration":166,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":518,"connectEnd":518,"connectStart":518,"domainLookupEnd":518,"domainLookupStart":518,"fetchStart":518,"redirectEnd":0,"redirectStart":0,"requestStart":643.5,"responseEnd":684,"responseStart":683.3000000119209,"secureConnectionStart":518}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":24,"responseStart":201,"responseEnd":237,"domLoading":204,"domInteractive":972,"domContentLoadedEventStart":972,"domContentLoadedEventEnd":1014,"domComplete":1536,"loadEventStart":1536,"loadEventEnd":1536,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":953.8999999761581},{"name":"bigPipe.sidebar-id.end","time":954.5999999642372},{"name":"bigPipe.activity-panel-pipe-id.start","time":954.8000000119209},{"name":"bigPipe.activity-panel-pipe-id.end","time":955.8999999761581},{"name":"activityTabFullyLoaded","time":1030.199999988079}],"measures":[],"correlationId":"35612c65e8cd6b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":17,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}