Note: I am not sure running with innodb_file_per_table=0 even makes any sense in these days, and in the combination with the long weird partition name it makes the failure rather theoretical. Filing as a subproduct of an exercise suggested by Marko.
--source include/have_innodb.inc
|
--source include/have_partition.inc
|
|
set @per_table= @@innodb_file_per_table;
|
|
set global innodb_file_per_table= 0;
|
create table t1 (a int) engine=InnoDB partition by range (a) (partition `x$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$` values less than (10));
|
|
# Cleanup
|
drop table t1;
|
set global innodb_file_per_table= @per_table;
|
10.5 9c55f83e
|
2020-06-06 01:28:40 0x7f4214252700 InnoDB: Assertion failure in file /data/src/10.5/storage/innobase/handler/ha_innodb.cc line 3101
|
InnoDB: Failing assertion: idlen <= MAX_TABLE_NAME_LEN
|
|
#6 0x00005606b7dd5130 in ut_dbg_assertion_failed (expr=0x5606b843dca8 "idlen <= MAX_TABLE_NAME_LEN", file=0x5606b843c028 "/data/src/10.5/storage/innobase/handler/ha_innodb.cc", line=3101) at /data/src/10.5/storage/innobase/ut/ut0dbg.cc:60
|
#7 0x00005606b7b2fd7b in innobase_convert_identifier (buf=0x7f421424da27 "", buflen=313, id=0x7f421424de95 "t1#P#x@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@002"..., idlen=321, thd=0x7f41e4000b18) at /data/src/10.5/storage/innobase/handler/ha_innodb.cc:3101
|
#8 0x00005606b7b2ff6e in innobase_convert_name (buf=0x7f421424da20 "`test`.", buflen=320, id=0x7f421424de90 "test/t1#P#x@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@002"..., idlen=326, thd=0x7f41e4000b18) at /data/src/10.5/storage/innobase/handler/ha_innodb.cc:3145
|
#9 0x00005606b7b44a03 in create_table_info_t::create_foreign_keys (this=0x7f421424de30) at /data/src/10.5/storage/innobase/handler/ha_innodb.cc:12214
|
#10 0x00005606b7b462e3 in create_table_info_t::create_table (this=0x7f421424de30, create_fk=true) at /data/src/10.5/storage/innobase/handler/ha_innodb.cc:12700
|
#11 0x00005606b7b5e036 in ha_innobase::create (this=0x7f41e40086c0, name=0x7f421424e5f0 "./test/t1#P#x@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0"..., form=0x7f421424e8c0, create_info=0x7f4214250b00, file_per_table=false, trx=0x7f42155013a0) at /data/src/10.5/storage/innobase/handler/ha_innodb.cc:13148
|
#12 0x00005606b7b47159 in ha_innobase::create (this=0x7f41e40086c0, name=0x7f421424e5f0 "./test/t1#P#x@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0"..., form=0x7f421424e8c0, create_info=0x7f4214250b00) at /data/src/10.5/storage/innobase/handler/ha_innodb.cc:13201
|
#13 0x00005606b76e9d2e in handler::ha_create (this=0x7f41e40086c0, name=0x7f421424e5f0 "./test/t1#P#x@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0024@0"..., form=0x7f421424e8c0, info_arg=0x7f4214250b00) at /data/src/10.5/sql/handler.cc:4912
|
#14 0x00005606b7a36985 in ha_partition::create (this=0x7f41e40f9870, name=0x7f42142506b0 "./test/t1", table_arg=0x7f421424e8c0, create_info=0x7f4214250b00) at /data/src/10.5/sql/ha_partition.cc:793
|
#15 0x00005606b76e9d2e in handler::ha_create (this=0x7f41e40f9870, name=0x7f42142506b0 "./test/t1", form=0x7f421424e8c0, info_arg=0x7f4214250b00) at /data/src/10.5/sql/handler.cc:4912
|
#16 0x00005606b76eb52a in ha_create_table (thd=0x7f41e4000b18, path=0x7f42142506b0 "./test/t1", db=0x7f41e4014228 "test", table_name=0x7f41e4013b20 "t1", create_info=0x7f4214250b00, frm=0x7f42142506a0) at /data/src/10.5/sql/handler.cc:5376
|
#17 0x00005606b747a141 in create_table_impl (thd=0x7f41e4000b18, orig_db=..., orig_table_name=..., db=..., table_name=..., path=0x7f42142506b0 "./test/t1", options=..., create_info=0x7f4214250b00, alter_info=0x7f4214250a30, create_table_mode=0, is_trans=0x7f421425090e, key_info=0x7f4214250690, key_count=0x7f4214250684, frm=0x7f42142506a0) at /data/src/10.5/sql/sql_table.cc:5188
|
#18 0x00005606b747a587 in mysql_create_table_no_lock (thd=0x7f41e4000b18, db=0x7f41e4013b70, table_name=0x7f41e4013b80, create_info=0x7f4214250b00, alter_info=0x7f4214250a30, is_trans=0x7f421425090e, create_table_mode=0, table_list=0x7f41e4013b58) at /data/src/10.5/sql/sql_table.cc:5275
|
#19 0x00005606b747a989 in mysql_create_table (thd=0x7f41e4000b18, create_table=0x7f41e4013b58, create_info=0x7f4214250b00, alter_info=0x7f4214250a30) at /data/src/10.5/sql/sql_table.cc:5364
|
#20 0x00005606b748e08d in Sql_cmd_create_table_like::execute (this=0x7f41e4013af8, thd=0x7f41e4000b18) at /data/src/10.5/sql/sql_table.cc:11888
|
#21 0x00005606b738e731 in mysql_execute_command (thd=0x7f41e4000b18) at /data/src/10.5/sql/sql_parse.cc:5950
|
#22 0x00005606b7394a65 in mysql_parse (thd=0x7f41e4000b18, rawbuf=0x7f41e4013950 "create table t1 (a int) engine=InnoDB partition by range (a) (partition `x", '$' <repeats 63 times>, "` values less than (10))", length=161, parser_state=0x7f4214251520, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7992
|
#23 0x00005606b7380deb in dispatch_command (command=COM_QUERY, thd=0x7f41e4000b18, packet=0x7f41e41b1789 "create table t1 (a int) engine=InnoDB partition by range (a) (partition `x", '$' <repeats 63 times>, "` values less than (10))", packet_length=161, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1875
|
#24 0x00005606b737f523 in do_command (thd=0x7f41e4000b18) at /data/src/10.5/sql/sql_parse.cc:1356
|
#25 0x00005606b7523e13 in do_handle_one_connection (connect=0x5606bb8390a8, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1411
|
#26 0x00005606b7523b7b in handle_one_connection (arg=0x5606bb8390a8) at /data/src/10.5/sql/sql_connect.cc:1313
|
#27 0x00005606b7a5b124 in pfs_spawn_thread (arg=0x5606bb721598) at /data/src/10.5/storage/perfschema/pfs.cc:2201
|
#28 0x00007f421cc534a4 in start_thread (arg=0x7f4214252700) at pthread_create.c:456
|
#29 0x00007f421ad87d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
|
Reproducible with both release- and debug builds, also on older 10.5 (tried 10.5.1).
Not reproducible on 10.4.
With innodb_file_per_table=1 all 10.x versions return ER_CANT_CREATE_TABLE:
10.1: errno: -1 "Internal error < 0 (Not system error)"
10.2+: errno: 168 "Unknown (generic) error from engine".
- is caused by
-
MDEV-20480
Obsolete internal parser for FK in InnoDB
-
-
Closed
{"report":{"fcp":817.8000001907349,"ttfb":229.39999961853027,"pageVisibility":"visible","entityId":87973,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":1,"journeyId":"f5926dd9-002e-4dbc-a7bf-e8d5a87f1a41","navigationType":0,"readyForUser":886.8999996185303,"redirectCount":0,"resourceLoadedEnd":669.1000003814697,"resourceLoadedStart":241.19999980926514,"resourceTiming":[{"duration":23,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":241.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":264.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":23,"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":241.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":264.5,"responseStart":0,"secureConnectionStart":0},{"duration":96.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":241.60000038146973,"connectEnd":241.60000038146973,"connectStart":241.60000038146973,"domainLookupEnd":241.60000038146973,"domainLookupStart":241.60000038146973,"fetchStart":241.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":272.3999996185303,"responseEnd":338,"responseStart":299.6000003814697,"secureConnectionStart":241.60000038146973},{"duration":121.80000019073486,"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":241.80000019073486,"connectEnd":241.80000019073486,"connectStart":241.80000019073486,"domainLookupEnd":241.80000019073486,"domainLookupStart":241.80000019073486,"fetchStart":241.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":272.3999996185303,"responseEnd":363.6000003814697,"responseStart":291.69999980926514,"secureConnectionStart":241.80000019073486},{"duration":61.10000038146973,"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":242,"connectEnd":242,"connectStart":242,"domainLookupEnd":242,"domainLookupStart":242,"fetchStart":242,"redirectEnd":0,"redirectStart":0,"requestStart":272.5,"responseEnd":303.1000003814697,"responseStart":302.1000003814697,"secureConnectionStart":242},{"duration":101.69999980926514,"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":242.10000038146973,"connectEnd":242.10000038146973,"connectStart":242.10000038146973,"domainLookupEnd":242.10000038146973,"domainLookupStart":242.10000038146973,"fetchStart":242.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":272.5,"responseEnd":343.80000019073486,"responseStart":343.30000019073486,"secureConnectionStart":242.10000038146973},{"duration":62.10000038146973,"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":242.19999980926514,"connectEnd":242.19999980926514,"connectStart":242.19999980926514,"domainLookupEnd":242.19999980926514,"domainLookupStart":242.19999980926514,"fetchStart":242.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":272.69999980926514,"responseEnd":304.30000019073486,"responseStart":303.80000019073486,"secureConnectionStart":242.19999980926514},{"duration":27.600000381469727,"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":242.39999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":270,"responseStart":0,"secureConnectionStart":0},{"duration":61.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":242.5,"connectEnd":242.5,"connectStart":242.5,"domainLookupEnd":242.5,"domainLookupStart":242.5,"fetchStart":242.5,"redirectEnd":0,"redirectStart":0,"requestStart":272.69999980926514,"responseEnd":303.80000019073486,"responseStart":303.19999980926514,"secureConnectionStart":242.5},{"duration":27.5,"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":242.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":270.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":59.19999980926514,"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":242.80000019073486,"connectEnd":242.80000019073486,"connectStart":242.80000019073486,"domainLookupEnd":242.80000019073486,"domainLookupStart":242.80000019073486,"fetchStart":242.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":272.80000019073486,"responseEnd":302,"responseStart":300.30000019073486,"secureConnectionStart":242.80000019073486},{"duration":419,"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":250,"connectEnd":285.8999996185303,"connectStart":285.8999996185303,"domainLookupEnd":285.8999996185303,"domainLookupStart":285.8999996185303,"fetchStart":250,"redirectEnd":0,"redirectStart":0,"requestStart":286.19999980926514,"responseEnd":669,"responseStart":660.1999998092651,"secureConnectionStart":285.8999996185303},{"duration":405.9000005722046,"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":263.19999980926514,"connectEnd":263.19999980926514,"connectStart":263.19999980926514,"domainLookupEnd":263.19999980926514,"domainLookupStart":263.19999980926514,"fetchStart":263.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":307.6000003814697,"responseEnd":669.1000003814697,"responseStart":661.5,"secureConnectionStart":263.19999980926514},{"duration":182.79999923706055,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":557.1000003814697,"connectEnd":557.1000003814697,"connectStart":557.1000003814697,"domainLookupEnd":557.1000003814697,"domainLookupStart":557.1000003814697,"fetchStart":557.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":706.3000001907349,"responseEnd":739.8999996185303,"responseStart":739,"secureConnectionStart":557.1000003814697},{"duration":154.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":787.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":787.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":942,"responseStart":0,"secureConnectionStart":0},{"duration":163.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":802.6999998092651,"connectEnd":802.6999998092651,"connectStart":802.6999998092651,"domainLookupEnd":802.6999998092651,"domainLookupStart":802.6999998092651,"fetchStart":802.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":931.3999996185303,"responseEnd":965.8999996185303,"responseStart":965.1999998092651,"secureConnectionStart":802.6999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":58,"responseStart":229,"responseEnd":262,"domLoading":240,"domInteractive":944,"domContentLoadedEventStart":944,"domContentLoadedEventEnd":978,"domComplete":1333,"loadEventStart":1333,"loadEventEnd":1334,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":925.6000003814697},{"name":"bigPipe.sidebar-id.end","time":926.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":926.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":927.5},{"name":"activityTabFullyLoaded","time":1007.3000001907349}],"measures":[],"correlationId":"78fb765f2e237e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":16,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This was broken in
MDEV-20480.I extended parts.longname and will merge it from 10.2 to later branches.