Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.0(EOL) , 10.1(EOL) , 10.2(EOL) , 10.3(EOL) , 10.4(EOL)
As noted in MDEV-17816 , ALTER TABLE fails to enforce the column index prefix size limit in ALGORITHM=INPLACE .
The operation can fail, but in a different way than ALGORITHM=COPY would. Here is an example of a failure:
--source include/have_innodb.inc
SET @save_format = @@ GLOBAL .innodb_file_format;
SET @save_prefix = @@ GLOBAL .innodb_large_prefix;
SET GLOBAL innodb_file_format=barracuda;
SET GLOBAL innodb_large_prefix= ON ;
CREATE TABLE t1 (c VARCHAR (1024),
c1 CHAR (255) NOT NULL ,c2 CHAR (255) NOT NULL ,c3 CHAR (255) NOT NULL ,
c4 CHAR (255) NOT NULL ,c5 CHAR (255) NOT NULL ,c6 CHAR (255) NOT NULL ,
c7 CHAR (255) NOT NULL ,c8 CHAR (255) NOT NULL ,c9 CHAR (255) NOT NULL ,
ca CHAR (255) NOT NULL ,cb CHAR (255) NOT NULL ,cc CHAR (255) NOT NULL ,
cd CHAR (255) NOT NULL ,ce CHAR (255) NOT NULL ,cf CHAR (255) NOT NULL ,
d0 CHAR (255) NOT NULL ,d1 CHAR (255) NOT NULL ,d2 CHAR (255) NOT NULL ,
d3 CHAR (255) NOT NULL ,d4 CHAR (255) NOT NULL ,d5 CHAR (255) NOT NULL ,
d6 CHAR (255) NOT NULL ,d7 CHAR (255) NOT NULL ,d8 CHAR (255) NOT NULL ,
d9 CHAR (255) NOT NULL ,da CHAR (255) NOT NULL ,db CHAR (255) NOT NULL ,
dc CHAR (255) NOT NULL ,dd CHAR (255) NOT NULL ,de CHAR (255) NOT NULL ,
UNIQUE KEY (c))
ENGINE=InnoDB ROW_FORMAT= DYNAMIC ;
INSERT INTO t1 VALUES
(repeat( 'a' ,999), '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' ),
(CONCAT(repeat( 'a' ,999), 'b' ), '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' , '' );
--enable_info
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
--disable_info
SELECT COUNT (*) FROM t1;
CHECK TABLE t1;
DROP TABLE t1;
SET GLOBAL innodb_file_format=@save_format;
SET GLOBAL innodb_large_prefix=@save_prefix;
10.0 14f6b0cdfd696ec0e4f24d914fc3123deaece2f6
mysqltest: At line 24: query 'ALTER TABLE t1 ROW_FORMAT=REDUNDANT' failed: 1118: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
The expected failure is as follows:
mysqltest: At line 24: query 'ALTER TABLE t1 ROW_FORMAT=REDUNDANT' failed: 1709: Index column size too large. The maximum column size is 767 bytes.
There are no comments yet on this issue.
{"report":{"fcp":899.6000001430511,"ttfb":181.5,"pageVisibility":"visible","entityId":71050,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"17a9c09b-27a9-490d-832b-76485d22dd00","navigationType":0,"readyForUser":1000.7999999523163,"redirectCount":0,"resourceLoadedEnd":817.2000000476837,"resourceLoadedStart":191,"resourceTiming":[{"duration":201.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":191,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":392.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":201.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":191.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":191.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":392.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":210,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":191.60000014305115,"connectEnd":191.60000014305115,"connectStart":191.60000014305115,"domainLookupEnd":191.60000014305115,"domainLookupStart":191.60000014305115,"fetchStart":191.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":191.60000014305115,"responseEnd":401.60000014305115,"responseStart":401.60000014305115,"secureConnectionStart":191.60000014305115},{"duration":292.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":192,"connectEnd":192,"connectStart":192,"domainLookupEnd":192,"domainLookupStart":192,"fetchStart":192,"redirectEnd":0,"redirectStart":0,"requestStart":192,"responseEnd":484.7999999523163,"responseStart":484.7999999523163,"secureConnectionStart":192},{"duration":296.59999990463257,"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":192.20000004768372,"connectEnd":192.20000004768372,"connectStart":192.20000004768372,"domainLookupEnd":192.20000004768372,"domainLookupStart":192.20000004768372,"fetchStart":192.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":192.20000004768372,"responseEnd":488.7999999523163,"responseStart":488.7999999523163,"secureConnectionStart":192.20000004768372},{"duration":296.7999999523163,"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":192.40000009536743,"connectEnd":192.40000009536743,"connectStart":192.40000009536743,"domainLookupEnd":192.40000009536743,"domainLookupStart":192.40000009536743,"fetchStart":192.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":192.40000009536743,"responseEnd":489.2000000476837,"responseStart":489.2000000476837,"secureConnectionStart":192.40000009536743},{"duration":297.10000014305115,"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":192.5,"connectEnd":192.5,"connectStart":192.5,"domainLookupEnd":192.5,"domainLookupStart":192.5,"fetchStart":192.5,"redirectEnd":0,"redirectStart":0,"requestStart":192.5,"responseEnd":489.60000014305115,"responseStart":489.60000014305115,"secureConnectionStart":192.5},{"duration":356.2999999523163,"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":192.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":192.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":549,"responseStart":0,"secureConnectionStart":0},{"duration":297.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":192.90000009536743,"connectEnd":192.90000009536743,"connectStart":192.90000009536743,"domainLookupEnd":192.90000009536743,"domainLookupStart":192.90000009536743,"fetchStart":192.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":192.90000009536743,"responseEnd":490.10000014305115,"responseStart":490.10000014305115,"secureConnectionStart":192.90000009536743},{"duration":356.10000014305115,"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":193,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":549.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":297.59999990463257,"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":193.20000004768372,"connectEnd":193.20000004768372,"connectStart":193.20000004768372,"domainLookupEnd":193.20000004768372,"domainLookupStart":193.20000004768372,"fetchStart":193.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":193.20000004768372,"responseEnd":490.7999999523163,"responseStart":490.7999999523163,"secureConnectionStart":193.20000004768372},{"duration":340.2000000476837,"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":211.90000009536743,"connectEnd":211.90000009536743,"connectStart":211.90000009536743,"domainLookupEnd":211.90000009536743,"domainLookupStart":211.90000009536743,"fetchStart":211.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":211.90000009536743,"responseEnd":552.1000001430511,"responseStart":552.1000001430511,"secureConnectionStart":211.90000009536743},{"duration":340.80000019073486,"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":214.79999995231628,"connectEnd":214.79999995231628,"connectStart":214.79999995231628,"domainLookupEnd":214.79999995231628,"domainLookupStart":214.79999995231628,"fetchStart":214.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":214.79999995231628,"responseEnd":555.6000001430511,"responseStart":555.6000001430511,"secureConnectionStart":214.79999995231628},{"duration":21.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":577.2999999523163,"connectEnd":577.2999999523163,"connectStart":577.2999999523163,"domainLookupEnd":577.2999999523163,"domainLookupStart":577.2999999523163,"fetchStart":577.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":577.2999999523163,"responseEnd":598.7999999523163,"responseStart":598.7999999523163,"secureConnectionStart":577.2999999523163},{"duration":215,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":602.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":602.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":817.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":17,"responseStart":181,"responseEnd":214,"domLoading":186,"domInteractive":1067,"domContentLoadedEventStart":1067,"domContentLoadedEventEnd":1118,"domComplete":1545,"loadEventStart":1545,"loadEventEnd":1546,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1050.1000001430511},{"name":"bigPipe.sidebar-id.end","time":1050.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1050.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1051.5},{"name":"activityTabFullyLoaded","time":1130.6000001430511}],"measures":[],"correlationId":"7fd1ec747792c9","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}