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.
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
63d 9h 56m
|
1
|
{"report":{"fcp":725.4000000953674,"ttfb":181.10000014305115,"pageVisibility":"visible","entityId":99852,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"3ddf62f4-dae6-434d-a79a-8b7117bb92c0","navigationType":0,"readyForUser":798.1000001430511,"redirectCount":0,"resourceLoadedEnd":835.9000000953674,"resourceLoadedStart":189.40000009536743,"resourceTiming":[{"duration":4.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":189.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":189.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":193.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":4,"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":189.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":189.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":193.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":71,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":189.90000009536743,"connectEnd":189.90000009536743,"connectStart":189.90000009536743,"domainLookupEnd":189.90000009536743,"domainLookupStart":189.90000009536743,"fetchStart":189.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":189.90000009536743,"responseEnd":260.90000009536743,"responseStart":260.90000009536743,"secureConnectionStart":189.90000009536743},{"duration":141.59999990463257,"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":190.30000019073486,"connectEnd":190.30000019073486,"connectStart":190.30000019073486,"domainLookupEnd":190.30000019073486,"domainLookupStart":190.30000019073486,"fetchStart":190.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":190.30000019073486,"responseEnd":331.90000009536743,"responseStart":331.90000009536743,"secureConnectionStart":190.30000019073486},{"duration":145.20000004768372,"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":190.5,"connectEnd":190.5,"connectStart":190.5,"domainLookupEnd":190.5,"domainLookupStart":190.5,"fetchStart":190.5,"redirectEnd":0,"redirectStart":0,"requestStart":190.5,"responseEnd":335.7000000476837,"responseStart":335.7000000476837,"secureConnectionStart":190.5},{"duration":146,"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":190.60000014305115,"connectEnd":190.60000014305115,"connectStart":190.60000014305115,"domainLookupEnd":190.60000014305115,"domainLookupStart":190.60000014305115,"fetchStart":190.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":190.60000014305115,"responseEnd":336.60000014305115,"responseStart":336.60000014305115,"secureConnectionStart":190.60000014305115},{"duration":145.59999990463257,"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":190.60000014305115,"connectEnd":190.60000014305115,"connectStart":190.60000014305115,"domainLookupEnd":190.60000014305115,"domainLookupStart":190.60000014305115,"fetchStart":190.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":190.60000014305115,"responseEnd":336.2000000476837,"responseStart":336.2000000476837,"secureConnectionStart":190.60000014305115},{"duration":146.09999990463257,"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":190.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":336.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":146.40000009536743,"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":190.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":337.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":146,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":190.90000009536743,"connectEnd":190.90000009536743,"connectStart":190.90000009536743,"domainLookupEnd":190.90000009536743,"domainLookupStart":190.90000009536743,"fetchStart":190.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":190.90000009536743,"responseEnd":336.90000009536743,"responseStart":336.90000009536743,"secureConnectionStart":190.90000009536743},{"duration":146.39999985694885,"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":191.10000014305115,"connectEnd":191.10000014305115,"connectStart":191.10000014305115,"domainLookupEnd":191.10000014305115,"domainLookupStart":191.10000014305115,"fetchStart":191.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":191.10000014305115,"responseEnd":337.5,"responseStart":337.5,"secureConnectionStart":191.10000014305115},{"duration":402.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":199.70000004768372,"connectEnd":199.70000004768372,"connectStart":199.70000004768372,"domainLookupEnd":199.70000004768372,"domainLookupStart":199.70000004768372,"fetchStart":199.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":199.70000004768372,"responseEnd":602.4000000953674,"responseStart":602.3000001907349,"secureConnectionStart":199.70000004768372},{"duration":418.09999990463257,"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":199.80000019073486,"connectEnd":199.80000019073486,"connectStart":199.80000019073486,"domainLookupEnd":199.80000019073486,"domainLookupStart":199.80000019073486,"fetchStart":199.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":199.80000019073486,"responseEnd":617.9000000953674,"responseStart":617.9000000953674,"secureConnectionStart":199.80000019073486},{"duration":132.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":476.40000009536743,"connectEnd":476.40000009536743,"connectStart":476.40000009536743,"domainLookupEnd":476.40000009536743,"domainLookupStart":476.40000009536743,"fetchStart":476.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":476.40000009536743,"responseEnd":609.2000000476837,"responseStart":609.2000000476837,"secureConnectionStart":476.40000009536743},{"duration":142.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":676,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":676,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":818.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":141.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bu7/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","startTime":676.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":676.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":818.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":141.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":677.3000001907349,"connectEnd":677.3000001907349,"connectStart":677.3000001907349,"domainLookupEnd":677.3000001907349,"domainLookupStart":677.3000001907349,"fetchStart":677.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":677.3000001907349,"responseEnd":818.9000000953674,"responseStart":818.9000000953674,"secureConnectionStart":677.3000001907349},{"duration":156.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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","startTime":677.7000000476837,"connectEnd":677.7000000476837,"connectStart":677.7000000476837,"domainLookupEnd":677.7000000476837,"domainLookupStart":677.7000000476837,"fetchStart":677.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":677.7000000476837,"responseEnd":834.6000001430511,"responseStart":834.6000001430511,"secureConnectionStart":677.7000000476837},{"duration":158,"initiatorType":"script","name":"https://jira.mariadb.org/s/86ee9bbc76cd1bcd8556fcdcf46241c9-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":677.9000000953674,"connectEnd":677.9000000953674,"connectStart":677.9000000953674,"domainLookupEnd":677.9000000953674,"domainLookupStart":677.9000000953674,"fetchStart":677.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":677.9000000953674,"responseEnd":835.9000000953674,"responseStart":835.9000000953674,"secureConnectionStart":677.9000000953674},{"duration":130,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":707.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":707.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":837.8000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":41,"responseStart":181,"responseEnd":200,"domLoading":184,"domInteractive":878,"domContentLoadedEventStart":878,"domContentLoadedEventEnd":917,"domComplete":1220,"loadEventStart":1220,"loadEventEnd":1221,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":838.4000000953674},{"name":"bigPipe.sidebar-id.end","time":839.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":839.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":840.1000001430511},{"name":"activityTabFullyLoaded","time":932.3000001907349}],"measures":[],"correlationId":"89de4c782e1b0e","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":78,"dbReadsTimeInMs":17,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}