--source include/have_innodb.inc
|
|
CREATE TABLE t1 (c CHAR(3), KEY(c)) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES ('foo');
|
ALTER IGNORE TABLE t1 MODIFY c CHAR(0);
|
|
# Cleanup
|
DROP TABLE t1;
|
10.3 06e5f28f9
|
mysqld: /data/src/10.3/storage/innobase/btr/btr0cur.cc:984: ulint btr_node_ptr_max_size(const dict_index_t*): Assertion `!strcmp(index->table->name.m_name, "SYS_FOREIGN") || !strcmp(index->table->name.m_name, "SYS_FOREIGN_COLS")' failed.
|
181123 13:43:13 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fb029844ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000560efe2241cc in btr_node_ptr_max_size (index=0x7fafa02c3758) at /data/src/10.3/storage/innobase/btr/btr0cur.cc:981
|
#9 0x0000560efe225399 in btr_cur_search_to_nth_level_func (index=0x7fafa02c3758, level=0, tuple=0x7fafa00ed460, mode=PAGE_CUR_LE, latch_mode=2, cursor=0x7fb01409f160, ahi_latch=0x0, file=0x560efe78b840 "/data/src/10.3/storage/innobase/row/row0ins.cc", line=2982, mtr=0x7fb01409fc70, autoinc=0) at /data/src/10.3/storage/innobase/btr/btr0cur.cc:1352
|
#10 0x0000560efe1035e2 in row_ins_sec_index_entry_low (flags=3, mode=2, index=0x7fafa02c3758, offsets_heap=0x7fafa03ec970, heap=0x7fafa022f980, entry=0x7fafa00ed460, trx_id=3106, thr=0x7fafa0337a50, dup_chk_only=false) at /data/src/10.3/storage/innobase/row/row0ins.cc:2982
|
#11 0x0000560efe1045df in row_ins_sec_index_entry (index=0x7fafa02c3758, entry=0x7fafa00ed460, thr=0x7fafa0337a50, dup_chk_only=false) at /data/src/10.3/storage/innobase/row/row0ins.cc:3334
|
#12 0x0000560efe1047b3 in row_ins_index_entry (index=0x7fafa02c3758, entry=0x7fafa00ed460, thr=0x7fafa0337a50) at /data/src/10.3/storage/innobase/row/row0ins.cc:3380
|
#13 0x0000560efe104d5a in row_ins_index_entry_step (node=0x7fafa0337090, thr=0x7fafa0337a50) at /data/src/10.3/storage/innobase/row/row0ins.cc:3528
|
#14 0x0000560efe105194 in row_ins (node=0x7fafa0337090, thr=0x7fafa0337a50) at /data/src/10.3/storage/innobase/row/row0ins.cc:3671
|
#15 0x0000560efe105999 in row_ins_step (thr=0x7fafa0337a50) at /data/src/10.3/storage/innobase/row/row0ins.cc:3916
|
#16 0x0000560efe126198 in row_insert_for_mysql (mysql_rec=0x7fafa032e618 "\375\377\377\375\357\377", prebuilt=0x7fafa0335f98, ins_mode=ROW_INS_NORMAL) at /data/src/10.3/storage/innobase/row/row0mysql.cc:1459
|
#17 0x0000560efdfce9f8 in ha_innobase::write_row (this=0x7fafa02e0178, record=0x7fafa032e618 "\375\377\377\375\357\377") at /data/src/10.3/storage/innobase/handler/ha_innodb.cc:8032
|
#18 0x0000560efdcb91a4 in handler::ha_write_row (this=0x7fafa02e0178, buf=0x7fafa032e618 "\375\377\377\375\357\377") at /data/src/10.3/sql/handler.cc:6237
|
#19 0x0000560efda9414d in copy_data_between_tables (thd=0x7fafa0000b00, from=0x7fafa03ed270, to=0x7fafa01f3f80, create=..., ignore=false, order_num=0, order=0x0, copied=0x7fb0140a12d0, deleted=0x7fb0140a12d8, keys_onoff=Alter_info::LEAVE_AS_IS, alter_ctx=0x7fb0140a20e0) at /data/src/10.3/sql/sql_table.cc:10446
|
#20 0x0000560efda9213e in mysql_alter_table (thd=0x7fafa0000b00, new_db=0x7fafa00051b8, new_name=0x7fafa0005578, create_info=0x7fb0140a2cd0, table_list=0x7fafa0014538, alter_info=0x7fb0140a2c10, order_num=0, order=0x0, ignore=false) at /data/src/10.3/sql/sql_table.cc:9883
|
#21 0x0000560efdb19447 in Sql_cmd_alter_table::execute (this=0x7fafa0014d38, thd=0x7fafa0000b00) at /data/src/10.3/sql/sql_alter.cc:497
|
#22 0x0000560efd9bb043 in mysql_execute_command (thd=0x7fafa0000b00) at /data/src/10.3/sql/sql_parse.cc:6283
|
#23 0x0000560efd9c0113 in mysql_parse (thd=0x7fafa0000b00, rawbuf=0x7fafa00142e8 "ALTER TABLE `table150_innodb_compressed_int` MODIFY `col_varchar_utf8_unique_default_null` CHAR( 0 ) NULL FIRST /* QNO 2417 CON_ID 18 */", length=136, parser_state=0x7fb0140a4640, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8090
|
#24 0x0000560efd9ad2d9 in dispatch_command (command=COM_QUERY, thd=0x7fafa0000b00, packet=0x7fafa000b1e1 "ALTER TABLE `table150_innodb_compressed_int` MODIFY `col_varchar_utf8_unique_default_null` CHAR( 0 ) NULL FIRST /* QNO 2417 CON_ID 18 */", packet_length=136, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1850
|
#25 0x0000560efd9abcfd in do_command (thd=0x7fafa0000b00) at /data/src/10.3/sql/sql_parse.cc:1395
|
#26 0x0000560efdb139d2 in do_handle_one_connection (connect=0x560f022beb80) at /data/src/10.3/sql/sql_connect.cc:1402
|
#27 0x0000560efdb13756 in handle_one_connection (arg=0x560f022beb80) at /data/src/10.3/sql/sql_connect.cc:1308
|
#28 0x00007fb02b300494 in start_thread (arg=0x7fb0140a5700) at pthread_create.c:333
|
#29 0x00007fb02990193f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Not reproducible on 10.1.
{"report":{"fcp":798.0999999642372,"ttfb":204,"pageVisibility":"visible","entityId":71023,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"d4a41c72-353a-48f4-a52e-87364b10440e","navigationType":0,"readyForUser":886.6999999880791,"redirectCount":0,"resourceLoadedEnd":917.1999999880791,"resourceLoadedStart":218.69999998807907,"resourceTiming":[{"duration":48.30000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":218.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":218.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":267,"responseStart":0,"secureConnectionStart":0},{"duration":48.39999997615814,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":219,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":219,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":267.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":65.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":219.0999999642372,"connectEnd":219.0999999642372,"connectStart":219.0999999642372,"domainLookupEnd":219.0999999642372,"domainLookupStart":219.0999999642372,"fetchStart":219.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":219.0999999642372,"responseEnd":284.80000001192093,"responseStart":284.80000001192093,"secureConnectionStart":219.0999999642372},{"duration":142.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":219.30000001192093,"connectEnd":219.30000001192093,"connectStart":219.30000001192093,"domainLookupEnd":219.30000001192093,"domainLookupStart":219.30000001192093,"fetchStart":219.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":219.30000001192093,"responseEnd":362.0999999642372,"responseStart":362.0999999642372,"secureConnectionStart":219.30000001192093},{"duration":145.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":219.5999999642372,"connectEnd":219.5999999642372,"connectStart":219.5999999642372,"domainLookupEnd":219.5999999642372,"domainLookupStart":219.5999999642372,"fetchStart":219.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":219.5999999642372,"responseEnd":365.5,"responseStart":365.5,"secureConnectionStart":219.5999999642372},{"duration":146.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":219.69999998807907,"connectEnd":219.69999998807907,"connectStart":219.69999998807907,"domainLookupEnd":219.69999998807907,"domainLookupStart":219.69999998807907,"fetchStart":219.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":219.69999998807907,"responseEnd":366,"responseStart":366,"secureConnectionStart":219.69999998807907},{"duration":146.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":219.89999997615814,"connectEnd":219.89999997615814,"connectStart":219.89999997615814,"domainLookupEnd":219.89999997615814,"domainLookupStart":219.89999997615814,"fetchStart":219.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":219.89999997615814,"responseEnd":366.39999997615814,"responseStart":366.39999997615814,"secureConnectionStart":219.89999997615814},{"duration":206.9000000357628,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":220.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":427,"responseStart":0,"secureConnectionStart":0},{"duration":146.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":220.19999998807907,"connectEnd":220.19999998807907,"connectStart":220.19999998807907,"domainLookupEnd":220.19999998807907,"domainLookupStart":220.19999998807907,"fetchStart":220.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":220.19999998807907,"responseEnd":367,"responseStart":367,"secureConnectionStart":220.19999998807907},{"duration":206.79999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":220.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":427.0999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":147.0999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":220.5,"connectEnd":220.5,"connectStart":220.5,"domainLookupEnd":220.5,"domainLookupStart":220.5,"fetchStart":220.5,"redirectEnd":0,"redirectStart":0,"requestStart":220.5,"responseEnd":367.5999999642372,"responseStart":367.5999999642372,"secureConnectionStart":220.5},{"duration":424.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":221.39999997615814,"connectEnd":221.39999997615814,"connectStart":221.39999997615814,"domainLookupEnd":221.39999997615814,"domainLookupStart":221.39999997615814,"fetchStart":221.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":221.39999997615814,"responseEnd":645.8000000119209,"responseStart":645.8000000119209,"secureConnectionStart":221.39999997615814},{"duration":631.6999999880791,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":221.5,"connectEnd":221.5,"connectStart":221.5,"domainLookupEnd":221.5,"domainLookupStart":221.5,"fetchStart":221.5,"redirectEnd":0,"redirectStart":0,"requestStart":221.5,"responseEnd":853.1999999880791,"responseStart":853.1999999880791,"secureConnectionStart":221.5},{"duration":207.89999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":438.30000001192093,"connectEnd":438.30000001192093,"connectStart":438.30000001192093,"domainLookupEnd":438.30000001192093,"domainLookupStart":438.30000001192093,"fetchStart":438.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":438.30000001192093,"responseEnd":646.1999999880791,"responseStart":646.1999999880791,"secureConnectionStart":438.30000001192093},{"duration":221.19999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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":695.8000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":695.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":917,"responseStart":0,"secureConnectionStart":0},{"duration":220.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bv2/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":696.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":696.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":917.1999999880791,"responseStart":0,"secureConnectionStart":0},{"duration":278.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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":697.1999999880791,"connectEnd":697.1999999880791,"connectStart":697.1999999880791,"domainLookupEnd":697.1999999880791,"domainLookupStart":697.1999999880791,"fetchStart":697.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":697.1999999880791,"responseEnd":976.0999999642372,"responseStart":976.0999999642372,"secureConnectionStart":697.1999999880791},{"duration":296.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/630dda803a823fdd5771c4338338e018-CDN/lu2bv2/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":697.8999999761581,"connectEnd":697.8999999761581,"connectStart":697.8999999761581,"domainLookupEnd":697.8999999761581,"domainLookupStart":697.8999999761581,"fetchStart":697.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":697.8999999761581,"responseEnd":994,"responseStart":994,"secureConnectionStart":697.8999999761581},{"duration":294.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/53a43b6764f587426c7bb9a150184c00-CDN/lu2bv2/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":697.5999999642372,"connectEnd":697.5999999642372,"connectStart":697.5999999642372,"domainLookupEnd":697.5999999642372,"domainLookupStart":697.5999999642372,"fetchStart":697.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":697.5999999642372,"responseEnd":992.5,"responseStart":992.5,"secureConnectionStart":697.5999999642372}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":36,"responseStart":204,"responseEnd":210,"domLoading":216,"domInteractive":942,"domContentLoadedEventStart":942,"domContentLoadedEventEnd":984,"domComplete":1342,"loadEventStart":1342,"loadEventEnd":1342,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":929.8999999761581},{"name":"bigPipe.sidebar-id.end","time":930.6999999880791},{"name":"bigPipe.activity-panel-pipe-id.start","time":930.8000000119209},{"name":"bigPipe.activity-panel-pipe-id.end","time":932},{"name":"activityTabFullyLoaded","time":1002.3999999761581}],"measures":[],"correlationId":"2bb55554a2691c","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
When applying the
MDEV-14637fix, I was under the wrong impression that CHAR(0) is not a valid data type. I must carefully review the assertions and the logic.Here is a simpler test case:
--source include/have_innodb.inc