Type:
Bug
Priority:
Minor
Resolution:
Unresolved
Affects Version/s:
10.6 , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL)
Note: To repeat what was also said in the comments, it was already known at the time of atomic DDL development/release (MDEV-25180 ) that partitioned tables still have problems and aren't made atomic in the scope of the task. However, I was asked to register reproducible test cases anyway, so they could be looked at with a low priority, so that's what this report is for.
The test case is non-deterministic, run with --repeat=N . It usually fails for me within several attempts (takes longer on non-debug builds), but it can vary on different machines and builds.
--source include/have_partition.inc
--source include/have_innodb.inc
--source include/have_sequence.inc
CREATE TABLE t (pk INT PRIMARY KEY , a INT ) ENGINE=InnoDB PARTITION BY HASH(pk);
INSERT INTO t SELECT seq, seq FROM seq_1_to_1000;
--connect (con1,localhost,root,,test)
--let $shutdown_timeout= 0
--send
ALTER TABLE t ADD KEY (a), ALGORITHM=INPLACE;
--connection default
--source include/restart_mysqld.inc
CHECK TABLE t;
# Cleanup
DROP TABLE t;
10.6 8171f9da
bug.t 'innodb' [ fail ] Found warnings/errors in server log file!
Test ended at 2023-06-17 22:19:56
line
2023-06-17 22:19:56 3 [ERROR] InnoDB indexes are inconsistent with what defined in .frm for table ./test/t#P#p0
2023-06-17 22:19:56 3 [ERROR] InnoDB: Table test/t#P#p0 contains 1 indexes inside InnoDB, which is different from the number of indexes 2 defined in the .frm file. See https://mariadb.com/kb/en/innodb-troubleshooting/
2023-06-17 22:19:56 3 [ERROR] InnoDB could not find key no 1 with name a from dict cache for table test/t#P#p0
2023-06-17 22:19:56 3 [ERROR] InnoDB: Table test/t#P#p0 contains 1 indexes inside InnoDB, which is different from the number of indexes 2 defined in the .frm file. See https://mariadb.com/kb/en/innodb-troubleshooting/
2023-06-17 22:19:56 3 [ERROR] InnoDB: Table test/t#P#p0 contains 1 indexes inside InnoDB, which is different from the number of indexes 2 defined in the .frm file. See https://mariadb.com/kb/en/innodb-troubleshooting/
2023-06-17 22:19:56 3 [ERROR] InnoDB could not find key no 1 with name a from dict cache for table test/t#P#p0
2023-06-17 22:19:56 3 [ERROR] InnoDB: Table test/t#P#p0 contains 1 indexes inside InnoDB, which is different from the number of indexes 2 defined in the .frm file. See https://mariadb.com/kb/en/innodb-troubleshooting/
^ Found warnings in /mnt8t/bld/10.6-asan/mysql-test/var/log/mysqld.1.err
ok
When it doesn't fail right away, it can also leave a temporary .par file behind
MTR's internal check of the test case 'bug.t' failed.
...
+#sql-alter-60b0a-5.par
{"report":{"fcp":833.1000001430511,"ttfb":155,"pageVisibility":"visible","entityId":107159,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2c506d14-a6b5-4853-952c-1d1c22177cab","navigationType":0,"readyForUser":909,"redirectCount":0,"resourceLoadedEnd":1134.7999999523163,"resourceLoadedStart":160,"resourceTiming":[{"duration":226.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":160,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":160,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":386.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":226,"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":160.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":160.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":386.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":235.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":160.40000009536743,"connectEnd":160.40000009536743,"connectStart":160.40000009536743,"domainLookupEnd":160.40000009536743,"domainLookupStart":160.40000009536743,"fetchStart":160.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":160.40000009536743,"responseEnd":395.5,"responseStart":395.5,"secureConnectionStart":160.40000009536743},{"duration":259.7999999523163,"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":160.5,"connectEnd":160.5,"connectStart":160.5,"domainLookupEnd":160.5,"domainLookupStart":160.5,"fetchStart":160.5,"redirectEnd":0,"redirectStart":0,"requestStart":160.5,"responseEnd":420.2999999523163,"responseStart":420.2999999523163,"secureConnectionStart":160.5},{"duration":263.5,"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":160.60000014305115,"connectEnd":160.60000014305115,"connectStart":160.60000014305115,"domainLookupEnd":160.60000014305115,"domainLookupStart":160.60000014305115,"fetchStart":160.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":160.60000014305115,"responseEnd":424.10000014305115,"responseStart":424.10000014305115,"secureConnectionStart":160.60000014305115},{"duration":263.90000009536743,"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":160.70000004768372,"connectEnd":160.70000004768372,"connectStart":160.70000004768372,"domainLookupEnd":160.70000004768372,"domainLookupStart":160.70000004768372,"fetchStart":160.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":160.70000004768372,"responseEnd":424.60000014305115,"responseStart":424.60000014305115,"secureConnectionStart":160.70000004768372},{"duration":264.10000014305115,"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":160.79999995231628,"connectEnd":160.79999995231628,"connectStart":160.79999995231628,"domainLookupEnd":160.79999995231628,"domainLookupStart":160.79999995231628,"fetchStart":160.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":160.79999995231628,"responseEnd":424.90000009536743,"responseStart":424.90000009536743,"secureConnectionStart":160.79999995231628},{"duration":265,"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":160.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":160.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":425.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":264.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":161,"connectEnd":161,"connectStart":161,"domainLookupEnd":161,"domainLookupStart":161,"fetchStart":161,"redirectEnd":0,"redirectStart":0,"requestStart":161,"responseEnd":425.2999999523163,"responseStart":425.2999999523163,"secureConnectionStart":161},{"duration":265,"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":161.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":426.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":264.5,"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":161.29999995231628,"connectEnd":161.29999995231628,"connectStart":161.29999995231628,"domainLookupEnd":161.29999995231628,"domainLookupStart":161.29999995231628,"fetchStart":161.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":161.29999995231628,"responseEnd":425.7999999523163,"responseStart":425.7999999523163,"secureConnectionStart":161.29999995231628},{"duration":486.2000000476837,"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":167.20000004768372,"connectEnd":167.20000004768372,"connectStart":167.20000004768372,"domainLookupEnd":167.20000004768372,"domainLookupStart":167.20000004768372,"fetchStart":167.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":167.20000004768372,"responseEnd":653.4000000953674,"responseStart":653.4000000953674,"secureConnectionStart":167.20000004768372},{"duration":967.5,"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":167.29999995231628,"connectEnd":167.29999995231628,"connectStart":167.29999995231628,"domainLookupEnd":167.29999995231628,"domainLookupStart":167.29999995231628,"fetchStart":167.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":167.29999995231628,"responseEnd":1134.7999999523163,"responseStart":1134.7999999523163,"secureConnectionStart":167.29999995231628},{"duration":470.7999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":627.1000001430511,"connectEnd":627.1000001430511,"connectStart":627.1000001430511,"domainLookupEnd":627.1000001430511,"domainLookupStart":627.1000001430511,"fetchStart":627.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":627.1000001430511,"responseEnd":1097.9000000953674,"responseStart":1097.9000000953674,"secureConnectionStart":627.1000001430511},{"duration":331.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":811.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":811.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1142.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":16,"responseStart":155,"responseEnd":163,"domLoading":158,"domInteractive":1159,"domContentLoadedEventStart":1159,"domContentLoadedEventEnd":1197,"domComplete":1939,"loadEventStart":1939,"loadEventEnd":1941,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1137},{"name":"bigPipe.sidebar-id.end","time":1137.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1138.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":1140.6000001430511},{"name":"activityTabFullyLoaded","time":1201.6000001430511}],"measures":[],"correlationId":"6c27267bdc79a4","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}