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":711.8999999761581,"ttfb":151.39999997615814,"pageVisibility":"visible","entityId":71050,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":1,"journeyId":"288b01d8-beb7-4c1f-bb0c-e55f757ca9b8","navigationType":0,"readyForUser":811.8999999761581,"redirectCount":0,"resourceLoadedEnd":791.6000000238419,"resourceLoadedStart":156.39999997615814,"resourceTiming":[{"duration":129.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":156.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":286,"responseStart":0,"secureConnectionStart":0},{"duration":129.39999997615814,"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":156.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":286.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":137.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":156.80000007152557,"connectEnd":156.80000007152557,"connectStart":156.80000007152557,"domainLookupEnd":156.80000007152557,"domainLookupStart":156.80000007152557,"fetchStart":156.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":156.80000007152557,"responseEnd":294.7000000476837,"responseStart":294.7000000476837,"secureConnectionStart":156.80000007152557},{"duration":230.10000002384186,"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":156.89999997615814,"connectEnd":156.89999997615814,"connectStart":156.89999997615814,"domainLookupEnd":156.89999997615814,"domainLookupStart":156.89999997615814,"fetchStart":156.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":156.89999997615814,"responseEnd":387,"responseStart":387,"secureConnectionStart":156.89999997615814},{"duration":233.60000002384186,"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":157,"connectEnd":157,"connectStart":157,"domainLookupEnd":157,"domainLookupStart":157,"fetchStart":157,"redirectEnd":0,"redirectStart":0,"requestStart":157,"responseEnd":390.60000002384186,"responseStart":390.60000002384186,"secureConnectionStart":157},{"duration":234,"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":157.10000002384186,"connectEnd":157.10000002384186,"connectStart":157.10000002384186,"domainLookupEnd":157.10000002384186,"domainLookupStart":157.10000002384186,"fetchStart":157.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":157.10000002384186,"responseEnd":391.10000002384186,"responseStart":391.10000002384186,"secureConnectionStart":157.10000002384186},{"duration":234.5,"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":157.10000002384186,"connectEnd":157.10000002384186,"connectStart":157.10000002384186,"domainLookupEnd":157.10000002384186,"domainLookupStart":157.10000002384186,"fetchStart":157.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":157.10000002384186,"responseEnd":391.60000002384186,"responseStart":391.60000002384186,"secureConnectionStart":157.10000002384186},{"duration":234.79999995231628,"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":157.30000007152557,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":392.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":234.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":157.39999997615814,"connectEnd":157.39999997615814,"connectStart":157.39999997615814,"domainLookupEnd":157.39999997615814,"domainLookupStart":157.39999997615814,"fetchStart":157.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":157.39999997615814,"responseEnd":392,"responseStart":392,"secureConnectionStart":157.39999997615814},{"duration":235,"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":157.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":157.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":392.5,"responseStart":0,"secureConnectionStart":0},{"duration":235,"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":157.60000002384186,"connectEnd":157.60000002384186,"connectStart":157.60000002384186,"domainLookupEnd":157.60000002384186,"domainLookupStart":157.60000002384186,"fetchStart":157.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":157.60000002384186,"responseEnd":392.60000002384186,"responseStart":392.60000002384186,"secureConnectionStart":157.60000002384186},{"duration":406.90000009536743,"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":163.89999997615814,"connectEnd":163.89999997615814,"connectStart":163.89999997615814,"domainLookupEnd":163.89999997615814,"domainLookupStart":163.89999997615814,"fetchStart":163.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":163.89999997615814,"responseEnd":570.8000000715256,"responseStart":570.8000000715256,"secureConnectionStart":163.89999997615814},{"duration":622.7000000476837,"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":164,"connectEnd":164,"connectStart":164,"domainLookupEnd":164,"domainLookupStart":164,"fetchStart":164,"redirectEnd":0,"redirectStart":0,"requestStart":164,"responseEnd":786.7000000476837,"responseStart":786.7000000476837,"secureConnectionStart":164},{"duration":100,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":473.2000000476837,"connectEnd":473.2000000476837,"connectStart":473.2000000476837,"domainLookupEnd":473.2000000476837,"domainLookupStart":473.2000000476837,"fetchStart":473.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":473.2000000476837,"responseEnd":573.2000000476837,"responseStart":573.2000000476837,"secureConnectionStart":473.2000000476837},{"duration":84.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":705.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":705.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":789.6000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":80,"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":711.6000000238419,"connectEnd":711.6000000238419,"connectStart":711.6000000238419,"domainLookupEnd":711.6000000238419,"domainLookupStart":711.6000000238419,"fetchStart":711.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":711.6000000238419,"responseEnd":791.6000000238419,"responseStart":791.6000000238419,"secureConnectionStart":711.6000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":24,"responseStart":151,"responseEnd":159,"domLoading":154,"domInteractive":922,"domContentLoadedEventStart":922,"domContentLoadedEventEnd":971,"domComplete":1165,"loadEventStart":1165,"loadEventEnd":1165,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":900.7000000476837},{"name":"bigPipe.sidebar-id.end","time":901.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":901.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":902.1000000238419},{"name":"activityTabFullyLoaded","time":982.7000000476837}],"measures":[],"correlationId":"ff0d3481da957e","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":68,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}