Table names are supposed to be case-sensitive on a case-sensitive file system. Alas, as noted in MDEV-25748, DROP DATABASE would seem drop InnoDB tables in a case-insensitive fashion, affecting tables in databases whose name only differs in the letter case:
diff --git a/mysql-test/suite/innodb/t/alter_foreign_crash.test b/mysql-test/suite/innodb/t/alter_foreign_crash.test
|
index 1952a1b30d4..b65dfa175c2 100644
|
--- a/mysql-test/suite/innodb/t/alter_foreign_crash.test
|
+++ b/mysql-test/suite/innodb/t/alter_foreign_crash.test
|
@@ -2,6 +2,7 @@
|
--source include/have_debug_sync.inc
|
# The embedded server does not support restarting.
|
--source include/not_embedded.inc
|
+--source include/have_case_sensitive_file_system.inc
|
|
--echo #
|
--echo # Bug #20476395 DICT_LOAD_FOREIGNS() FAILED IN
|
@@ -10,6 +11,11 @@
|
|
call mtr.add_suppression("InnoDB: Failed to load table");
|
|
+CREATE DATABASE Bug;
|
+CREATE TABLE Bug.parent(a SERIAL) ENGINE=INNODB;
|
+CREATE TABLE Bug.child(a SERIAL, FOREIGN KEY f(a) REFERENCES Bug.parent(a))
|
+ENGINE=INNODB;
|
+
|
create database bug;
|
use bug;
|
|
@@ -18,6 +24,7 @@ create table child(a serial, foreign key fk (a) references parent(a))engine=inno
|
|
insert into parent values(1);
|
insert into child values(1);
|
+drop database Bug;
|
|
connect (con1,localhost,root,,bug);
|
SET DEBUG_SYNC='innodb_rename_table_ready SIGNAL s1 WAIT_FOR s2 EXECUTE 2';
|
@@ -32,6 +39,9 @@ disconnect con1;
|
|
show tables;
|
alter table parent row_format=dynamic;
|
-
|
+select * from child;
|
+--error ER_ROW_IS_REFERENCED_2
|
+drop table parent;
|
+drop table child;
|
drop table parent;
|
drop database bug;
|
The changed test would fail in an unexpected way (not a mere result difference):
10.2 629449172a5b0a6975663ca1ac420789e00b941d
|
CURRENT_TEST: innodb.alter_foreign_crash
|
mysqltest: At line 42: query 'select * from child' failed: 1146: Table 'bug.child' doesn't exist
|
Possibly we could fix this by porting the fixes of MDEV-25691 and MDEV-25748 from MariaDB Server 10.6, but it might not be a good idea because the MDEV-25691 fix removes work-arounds for the lack of atomic DDL (MDEV-17567).
Hence, even though I usually treat InnoDB corruption bugs at high priority, I am only filing this bug for documenting its existence. I do not plan to fix this, because the fix could cause more damage, and because the bug has existed for years without anyone complaining.
{"report":{"fcp":1808.5999999642372,"ttfb":908.3999999761581,"pageVisibility":"visible","entityId":99852,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6329944e-924b-4485-a5eb-c5cd5ab4b1f3","navigationType":0,"readyForUser":1892.3999999761581,"redirectCount":0,"resourceLoadedEnd":2154,"resourceLoadedStart":915.7999999523163,"resourceTiming":[{"duration":340.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":915.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":915.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1255.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":340.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":916.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":916.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1256.199999988079,"responseStart":0,"secureConnectionStart":0},{"duration":404.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":916.2999999523163,"connectEnd":916.2999999523163,"connectStart":916.2999999523163,"domainLookupEnd":916.2999999523163,"domainLookupStart":916.2999999523163,"fetchStart":916.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":916.2999999523163,"responseEnd":1321.199999988079,"responseStart":1321.199999988079,"secureConnectionStart":916.2999999523163},{"duration":510.0999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":916.5,"connectEnd":916.5,"connectStart":916.5,"domainLookupEnd":916.5,"domainLookupStart":916.5,"fetchStart":916.5,"redirectEnd":0,"redirectStart":0,"requestStart":916.5,"responseEnd":1426.5999999642372,"responseStart":1426.5999999642372,"secureConnectionStart":916.5},{"duration":406.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":916.6999999880791,"connectEnd":916.6999999880791,"connectStart":916.6999999880791,"domainLookupEnd":916.6999999880791,"domainLookupStart":916.6999999880791,"fetchStart":916.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":916.6999999880791,"responseEnd":1323.199999988079,"responseStart":1323.199999988079,"secureConnectionStart":916.6999999880791},{"duration":406.89999997615814,"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":916.8999999761581,"connectEnd":916.8999999761581,"connectStart":916.8999999761581,"domainLookupEnd":916.8999999761581,"domainLookupStart":916.8999999761581,"fetchStart":916.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":916.8999999761581,"responseEnd":1323.7999999523163,"responseStart":1323.7999999523163,"secureConnectionStart":916.8999999761581},{"duration":513.4000000357628,"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":917.0999999642372,"connectEnd":917.0999999642372,"connectStart":917.0999999642372,"domainLookupEnd":917.0999999642372,"domainLookupStart":917.0999999642372,"fetchStart":917.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":917.0999999642372,"responseEnd":1430.5,"responseStart":1430.5,"secureConnectionStart":917.0999999642372},{"duration":556.6000000238419,"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":917.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":917.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1473.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":513.8999999761581,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":917.3999999761581,"connectEnd":917.3999999761581,"connectStart":917.3999999761581,"domainLookupEnd":917.3999999761581,"domainLookupStart":917.3999999761581,"fetchStart":917.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":917.3999999761581,"responseEnd":1431.2999999523163,"responseStart":1431.2999999523163,"secureConnectionStart":917.3999999761581},{"duration":556.6999999880791,"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":917.5999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":917.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1474.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":514.3999999761581,"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":917.6999999880791,"connectEnd":917.6999999880791,"connectStart":917.6999999880791,"domainLookupEnd":917.6999999880791,"domainLookupStart":917.6999999880791,"fetchStart":917.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":917.6999999880791,"responseEnd":1432.0999999642372,"responseStart":1432.0999999642372,"secureConnectionStart":917.6999999880791},{"duration":1063.5999999642372,"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":931,"connectEnd":931,"connectStart":931,"domainLookupEnd":931,"domainLookupStart":931,"fetchStart":931,"redirectEnd":0,"redirectStart":0,"requestStart":931,"responseEnd":1994.5999999642372,"responseStart":1994.5999999642372,"secureConnectionStart":931},{"duration":1222.9000000357628,"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":931.0999999642372,"connectEnd":931.0999999642372,"connectStart":931.0999999642372,"domainLookupEnd":931.0999999642372,"domainLookupStart":931.0999999642372,"fetchStart":931.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":931.0999999642372,"responseEnd":2154,"responseStart":2154,"secureConnectionStart":931.0999999642372},{"duration":526.5999999642372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1495.199999988079,"connectEnd":1495.199999988079,"connectStart":1495.199999988079,"domainLookupEnd":1495.199999988079,"domainLookupStart":1495.199999988079,"fetchStart":1495.199999988079,"redirectEnd":0,"redirectStart":0,"requestStart":1495.199999988079,"responseEnd":2021.7999999523163,"responseStart":2021.7999999523163,"secureConnectionStart":1495.199999988079},{"duration":431.5999999642372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1801.199999988079,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1801.199999988079,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2232.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":612,"domainLookupEnd":702,"connectStart":702,"connectEnd":724,"secureConnectionStart":712,"requestStart":724,"responseStart":908,"responseEnd":930,"domLoading":912,"domInteractive":2182,"domContentLoadedEventStart":2182,"domContentLoadedEventEnd":2228,"domComplete":2540,"loadEventStart":2540,"loadEventEnd":2540,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2169.099999964237},{"name":"bigPipe.sidebar-id.end","time":2170.099999964237},{"name":"bigPipe.activity-panel-pipe-id.start","time":2170.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":2171.2999999523163},{"name":"activityTabFullyLoaded","time":2244.099999964237}],"measures":[],"correlationId":"9b3a64b7a0cf16","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
marko,
Should it be closed as 'Won't fix' then? It sounds like a very good fit, given the circumstances.