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":1686.6999998092651,"ttfb":373.30000019073486,"pageVisibility":"visible","entityId":99852,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"aedd0669-dd9e-4e6e-aa19-eb7c0059a185","navigationType":0,"readyForUser":1767.6999998092651,"redirectCount":0,"resourceLoadedEnd":1921.8000001907349,"resourceLoadedStart":378.69999980926514,"resourceTiming":[{"duration":849.1000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":378.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":378.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1227.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":849.1000003814697,"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":379,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":379,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1228.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":857.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":379.19999980926514,"connectEnd":379.19999980926514,"connectStart":379.19999980926514,"domainLookupEnd":379.19999980926514,"domainLookupStart":379.19999980926514,"fetchStart":379.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":379.19999980926514,"responseEnd":1237.1000003814697,"responseStart":1237.1000003814697,"secureConnectionStart":379.19999980926514},{"duration":895.6999998092651,"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":379.4000005722046,"connectEnd":379.4000005722046,"connectStart":379.4000005722046,"domainLookupEnd":379.4000005722046,"domainLookupStart":379.4000005722046,"fetchStart":379.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":379.4000005722046,"responseEnd":1275.1000003814697,"responseStart":1275,"secureConnectionStart":379.4000005722046},{"duration":899.3000001907349,"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":379.6000003814697,"connectEnd":379.6000003814697,"connectStart":379.6000003814697,"domainLookupEnd":379.6000003814697,"domainLookupStart":379.6000003814697,"fetchStart":379.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":379.6000003814697,"responseEnd":1278.9000005722046,"responseStart":1278.9000005722046,"secureConnectionStart":379.6000003814697},{"duration":899.5,"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":379.80000019073486,"connectEnd":379.80000019073486,"connectStart":379.80000019073486,"domainLookupEnd":379.80000019073486,"domainLookupStart":379.80000019073486,"fetchStart":379.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":379.80000019073486,"responseEnd":1279.3000001907349,"responseStart":1279.3000001907349,"secureConnectionStart":379.80000019073486},{"duration":899.6000003814697,"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":380,"connectEnd":380,"connectStart":380,"domainLookupEnd":380,"domainLookupStart":380,"fetchStart":380,"redirectEnd":0,"redirectStart":0,"requestStart":380,"responseEnd":1279.6000003814697,"responseStart":1279.6000003814697,"secureConnectionStart":380},{"duration":998.1000003814697,"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":380.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":380.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1378.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":899.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":380.4000005722046,"connectEnd":380.4000005722046,"connectStart":380.4000005722046,"domainLookupEnd":380.4000005722046,"domainLookupStart":380.4000005722046,"fetchStart":380.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":380.4000005722046,"responseEnd":1280.1000003814697,"responseStart":1280.1000003814697,"secureConnectionStart":380.4000005722046},{"duration":998,"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":380.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":380.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1378.5,"responseStart":0,"secureConnectionStart":0},{"duration":900,"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":380.6000003814697,"connectEnd":380.6000003814697,"connectStart":380.6000003814697,"domainLookupEnd":380.6000003814697,"domainLookupStart":380.6000003814697,"fetchStart":380.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":380.6000003814697,"responseEnd":1280.6000003814697,"responseStart":1280.6000003814697,"secureConnectionStart":380.6000003814697},{"duration":1340.5,"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":381.69999980926514,"connectEnd":381.69999980926514,"connectStart":381.69999980926514,"domainLookupEnd":381.69999980926514,"domainLookupStart":381.69999980926514,"fetchStart":381.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":381.69999980926514,"responseEnd":1722.1999998092651,"responseStart":1722.1999998092651,"secureConnectionStart":381.69999980926514},{"duration":1540.1000003814697,"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":381.69999980926514,"connectEnd":381.69999980926514,"connectStart":381.69999980926514,"domainLookupEnd":381.69999980926514,"domainLookupStart":381.69999980926514,"fetchStart":381.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":381.69999980926514,"responseEnd":1921.8000001907349,"responseStart":1921.8000001907349,"secureConnectionStart":381.69999980926514},{"duration":333.29999923706055,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1389.9000005722046,"connectEnd":1389.9000005722046,"connectStart":1389.9000005722046,"domainLookupEnd":1389.9000005722046,"domainLookupStart":1389.9000005722046,"fetchStart":1389.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1389.9000005722046,"responseEnd":1723.1999998092651,"responseStart":1723.1999998092651,"secureConnectionStart":1389.9000005722046},{"duration":319.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1680.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1680.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2000.1000003814697,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":196,"responseStart":373,"responseEnd":377,"domLoading":376,"domInteractive":1955,"domContentLoadedEventStart":1955,"domContentLoadedEventEnd":1997,"domComplete":2591,"loadEventStart":2592,"loadEventEnd":2592,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1938.6000003814697},{"name":"bigPipe.sidebar-id.end","time":1939.4000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":1939.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1940.5},{"name":"activityTabFullyLoaded","time":2010.1999998092651}],"measures":[],"correlationId":"b5c11fcdf7cdc2","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":15,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
marko,
Should it be closed as 'Won't fix' then? It sounds like a very good fit, given the circumstances.