--source include/have_innodb.inc
|
|
CREATE TABLE t1 (a VARCHAR(128), b VARCHAR(128)) ENGINE=InnoDB;
|
ALTER TABLE t1 ADD FULLTEXT INDEX (a);
|
ALTER TABLE t1 ADD FULLTEXT INDEX (b);
|
ALTER TABLE t1 ADD c SERIAL;
|
|
# Cleanup
|
DROP TABLE t1;
|
10.3 82490a97dbb
|
mysqld: /data/src/10.3/storage/innobase/handler/handler0alter.cc:5457: bool prepare_inplace_alter_table_dict(Alter_inplace_info*, const TABLE*, const TABLE*, const char*, ulint, ulint, ulint, bool, bool): Assertion `num_fts_index <= 1' failed.
|
190115 0:07:43 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007ff22435aee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000055ad5e1f6e05 in prepare_inplace_alter_table_dict (ha_alter_info=0x7ff21d69d360, altered_table=0x7ff1c80a7f40, old_table=0x7ff1c806dce0, table_name=0x7ff1c800e66d "t1", flags=33, flags2=94, fts_doc_id_col=3, add_fts_doc_id=true, add_fts_doc_id_idx=true) at /data/src/10.3/storage/innobase/handler/handler0alter.cc:5457
|
#9 0x000055ad5e1fbc10 in ha_innobase::prepare_inplace_alter_table (this=0x7ff1c800d258, altered_table=0x7ff1c80a7f40, ha_alter_info=0x7ff21d69d360) at /data/src/10.3/storage/innobase/handler/handler0alter.cc:6998
|
#10 0x000055ad5dea32cd in handler::ha_prepare_inplace_alter_table (this=0x7ff1c800d258, altered_table=0x7ff1c80a7f40, ha_alter_info=0x7ff21d69d360) at /data/src/10.3/sql/handler.cc:4436
|
#11 0x000055ad5dc79bbc in mysql_inplace_alter_table (thd=0x7ff1c8000b00, table_list=0x7ff1c8014dc0, table=0x7ff1c806dce0, altered_table=0x7ff1c80a7f40, ha_alter_info=0x7ff21d69d360, inplace_supported=HA_ALTER_INPLACE_COPY_LOCK, target_mdl_request=0x7ff21d69d490, alter_ctx=0x7ff21d69e090) at /data/src/10.3/sql/sql_table.cc:7515
|
#12 0x000055ad5dc7fe42 in mysql_alter_table (thd=0x7ff1c8000b00, new_db=0x7ff1c80051b8, new_name=0x7ff1c8005578, create_info=0x7ff21d69ec80, table_list=0x7ff1c8014dc0, alter_info=0x7ff21d69ebc0, order_num=0, order=0x0, ignore=false) at /data/src/10.3/sql/sql_table.cc:9700
|
#13 0x000055ad5dd07ccb in Sql_cmd_alter_table::execute (this=0x7ff1c80155e8, thd=0x7ff1c8000b00) at /data/src/10.3/sql/sql_alter.cc:497
|
#14 0x000055ad5dba9598 in mysql_execute_command (thd=0x7ff1c8000b00) at /data/src/10.3/sql/sql_parse.cc:6285
|
#15 0x000055ad5dbae669 in mysql_parse (thd=0x7ff1c8000b00, rawbuf=0x7ff1c8014cd8 "ALTER TABLE t1 ADD c SERIAL", length=27, parser_state=0x7ff21d6a05f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8092
|
#16 0x000055ad5db9b81d in dispatch_command (command=COM_QUERY, thd=0x7ff1c8000b00, packet=0x7ff1c8161121 "ALTER TABLE t1 ADD c SERIAL", packet_length=27, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1851
|
#17 0x000055ad5db9a241 in do_command (thd=0x7ff1c8000b00) at /data/src/10.3/sql/sql_parse.cc:1396
|
#18 0x000055ad5dd02256 in do_handle_one_connection (connect=0x55ad6045a050) at /data/src/10.3/sql/sql_connect.cc:1402
|
#19 0x000055ad5dd01fda in handle_one_connection (arg=0x55ad6045a050) at /data/src/10.3/sql/sql_connect.cc:1308
|
#20 0x000055ad5e19c8dd in pfs_spawn_thread (arg=0x55ad6049b940) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#21 0x00007ff226031494 in start_thread (arg=0x7ff21d6a1700) at pthread_create.c:333
|
#22 0x00007ff22441793f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Both debug and non-debug builds fail.
On 10.0-10.2 (and on upstream 5.6, 5.7) there is no assertion failure, but the error looks strange:
mysqltest: At line 5: query 'ALTER TABLE t1 ADD c SERIAL' failed: 1795: InnoDB presently supports one FULLTEXT index creation at a time
|
Note that it happens upon adding the next column, not upon adding the second FULLTEXT index.
{"report":{"fcp":796.1000003814697,"ttfb":178.90000009536743,"pageVisibility":"visible","entityId":71688,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"228b882f-3e30-49d8-80e3-064fda4d06c2","navigationType":0,"readyForUser":879.2000002861023,"redirectCount":0,"resourceLoadedEnd":840.4000000953674,"resourceLoadedStart":185,"resourceTiming":[{"duration":26.100000381469727,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":185,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":211.10000038146973,"responseStart":0,"secureConnectionStart":0},{"duration":45.59999990463257,"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":185.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":185.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":230.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":102,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":185.40000009536743,"connectEnd":185.40000009536743,"connectStart":185.40000009536743,"domainLookupEnd":185.40000009536743,"domainLookupStart":185.40000009536743,"fetchStart":185.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":185.40000009536743,"responseEnd":287.40000009536743,"responseStart":287.40000009536743,"secureConnectionStart":185.40000009536743},{"duration":244.19999980926514,"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":185.60000038146973,"connectEnd":185.60000038146973,"connectStart":185.60000038146973,"domainLookupEnd":185.60000038146973,"domainLookupStart":185.60000038146973,"fetchStart":185.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":185.60000038146973,"responseEnd":429.80000019073486,"responseStart":429.7000002861023,"secureConnectionStart":185.60000038146973},{"duration":248.09999990463257,"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":185.80000019073486,"connectEnd":185.80000019073486,"connectStart":185.80000019073486,"domainLookupEnd":185.80000019073486,"domainLookupStart":185.80000019073486,"fetchStart":185.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":185.80000019073486,"responseEnd":433.90000009536743,"responseStart":433.90000009536743,"secureConnectionStart":185.80000019073486},{"duration":248.5,"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":186.10000038146973,"connectEnd":186.10000038146973,"connectStart":186.10000038146973,"domainLookupEnd":186.10000038146973,"domainLookupStart":186.10000038146973,"fetchStart":186.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":186.10000038146973,"responseEnd":434.6000003814697,"responseStart":434.6000003814697,"secureConnectionStart":186.10000038146973},{"duration":249,"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":186.2000002861023,"connectEnd":186.2000002861023,"connectStart":186.2000002861023,"domainLookupEnd":186.2000002861023,"domainLookupStart":186.2000002861023,"fetchStart":186.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":186.2000002861023,"responseEnd":435.2000002861023,"responseStart":435.2000002861023,"secureConnectionStart":186.2000002861023},{"duration":253,"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":186.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":439.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":249.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":186.5,"connectEnd":186.5,"connectStart":186.5,"domainLookupEnd":186.5,"domainLookupStart":186.5,"fetchStart":186.5,"redirectEnd":0,"redirectStart":0,"requestStart":186.5,"responseEnd":436,"responseStart":436,"secureConnectionStart":186.5},{"duration":252.69999980926514,"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":186.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":186.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":439.5,"responseStart":0,"secureConnectionStart":0},{"duration":249.80000019073486,"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":186.90000009536743,"connectEnd":186.90000009536743,"connectStart":186.90000009536743,"domainLookupEnd":186.90000009536743,"domainLookupStart":186.90000009536743,"fetchStart":186.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":186.90000009536743,"responseEnd":436.7000002861023,"responseStart":436.7000002861023,"secureConnectionStart":186.90000009536743},{"duration":320.90000009536743,"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":187.7000002861023,"connectEnd":187.7000002861023,"connectStart":187.7000002861023,"domainLookupEnd":187.7000002861023,"domainLookupStart":187.7000002861023,"fetchStart":187.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":187.7000002861023,"responseEnd":508.6000003814697,"responseStart":508.6000003814697,"secureConnectionStart":187.7000002861023},{"duration":549.5999999046326,"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":187.80000019073486,"connectEnd":187.80000019073486,"connectStart":187.80000019073486,"domainLookupEnd":187.80000019073486,"domainLookupStart":187.80000019073486,"fetchStart":187.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":187.80000019073486,"responseEnd":737.4000000953674,"responseStart":737.4000000953674,"secureConnectionStart":187.80000019073486},{"duration":72.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":435.30000019073486,"connectEnd":435.30000019073486,"connectStart":435.30000019073486,"domainLookupEnd":435.30000019073486,"domainLookupStart":435.30000019073486,"fetchStart":435.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":435.30000019073486,"responseEnd":508,"responseStart":508,"secureConnectionStart":435.30000019073486},{"duration":42.19999980926514,"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":708.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":708.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":750.5,"responseStart":0,"secureConnectionStart":0},{"duration":41.700000286102295,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/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&whisper-enabled=true","startTime":708.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":708.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":750.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":122.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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&whisper-enabled=true","startTime":709.8000001907349,"connectEnd":709.8000001907349,"connectStart":709.8000001907349,"domainLookupEnd":709.8000001907349,"domainLookupStart":709.8000001907349,"fetchStart":709.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":709.8000001907349,"responseEnd":832.5,"responseStart":832.5,"secureConnectionStart":709.8000001907349},{"duration":128.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/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&whisper-enabled=true","startTime":710.2000002861023,"connectEnd":710.2000002861023,"connectStart":710.2000002861023,"domainLookupEnd":710.2000002861023,"domainLookupStart":710.2000002861023,"fetchStart":710.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":710.2000002861023,"responseEnd":838.9000000953674,"responseStart":838.9000000953674,"secureConnectionStart":710.2000002861023},{"duration":129.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/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&whisper-enabled=true","startTime":710.5,"connectEnd":710.5,"connectStart":710.5,"domainLookupEnd":710.5,"domainLookupStart":710.5,"fetchStart":710.5,"redirectEnd":0,"redirectStart":0,"requestStart":710.5,"responseEnd":840.4000000953674,"responseStart":840.4000000953674,"secureConnectionStart":710.5},{"duration":127.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":788.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":788.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":916.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":50.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":811.2000002861023,"connectEnd":811.2000002861023,"connectStart":811.2000002861023,"domainLookupEnd":811.2000002861023,"domainLookupStart":811.2000002861023,"fetchStart":811.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":811.2000002861023,"responseEnd":861.6000003814697,"responseStart":861.6000003814697,"secureConnectionStart":811.2000002861023}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":178,"responseEnd":182,"domLoading":182,"domInteractive":962,"domContentLoadedEventStart":962,"domContentLoadedEventEnd":1008,"domComplete":1125,"loadEventStart":1125,"loadEventEnd":1125,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":918.5},{"name":"bigPipe.sidebar-id.end","time":919.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":919.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":920.7000002861023},{"name":"activityTabFullyLoaded","time":1027.3000001907349}],"measures":[],"correlationId":"b7cf36465883f9","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Yes, InnoDB would output that obscure message whenever trying to rebuild a table that contains multiple FULLTEXT INDEX. And it is a ridiculous limitation that was introduced in MySQL 5.6 and never fixed since.
The logic in ha_innobase::check_if_supported_inplace_alter() was broken related to
MDEV-11369orMDEV-13134. Here is a simpler test case: