--source include/have_sequence.inc
--source include/have_innodb.inc
CREATE TABLE t1 (pk INT , a VARCHAR (8), PRIMARY KEY (pk)) ENGINE=InnoDB;
CREATE TABLE t2 (b INT , FOREIGN KEY (b) REFERENCES t1(pk)) ENGINE=InnoDB;
INSERT INTO t1 SELECT seq, CONCAT( 'foo' ,seq) FROM seq_1_to_1000;
ALTER TABLE t1 ADD FULLTEXT KEY fk1(a);
ALTER TABLE t1 ADD FULLTEXT KEY fk2(a);
--error ER_ROW_IS_REFERENCED_2
CREATE OR REPLACE TABLE t1 (f INT );
REPLACE INTO t1 SELECT seq, CONCAT( 'foo' ,seq) FROM seq_1_to_1000;
ALTER TABLE t1 FORCE ;
# Cleanup
DROP TABLE t2, t1;
10.4 25918576 debug
mysqld: /data/src/10.4/storage/innobase/fts/fts0opt.cc:2620: void fts_optimize_remove_table(dict_table_t*): Assertion `!table->fts->in_queue' failed.
200121 19:34:10 [ERROR] mysqld got signal 6 ;
#7 0x00007ff3dc139f12 in __GI___assert_fail (assertion=0x5570869f845c "!table->fts->in_queue", file=0x5570869f7940 "/data/src/10.4/storage/innobase/fts/fts0opt.cc", line=2620, function=0x5570869f9020 <fts_optimize_remove_table(dict_table_t*)::__PRETTY_FUNCTION__> "void fts_optimize_remove_table(dict_table_t*)") at assert.c:101
#8 0x000055708635af2d in fts_optimize_remove_table (table=0x7ff38c1a4b68) at /data/src/10.4/storage/innobase/fts/fts0opt.cc:2620
#9 0x0000557086104707 in row_drop_table_for_mysql (name=0x7ff3d5504920 "test/#sql2-5fe2-9", trx=0x7ff3d5fa4268, sqlcom=SQLCOM_ALTER_TABLE, create_failed=false, nonatomic=true) at /data/src/10.4/storage/innobase/row/row0mysql.cc:3399
#10 0x0000557085f7b839 in ha_innobase::delete_table (this=0x7ff38c015cb0, name=0x7ff3d55063f0 "./test/#sql2-5fe2-9", sqlcom=SQLCOM_ALTER_TABLE) at /data/src/10.4/storage/innobase/handler/ha_innodb.cc:13173
#11 0x0000557085f64d62 in ha_innobase::delete_table (this=0x7ff38c015cb0, name=0x7ff3d55063f0 "./test/#sql2-5fe2-9") at /data/src/10.4/storage/innobase/handler/ha_innodb.cc:13298
#12 0x0000557085d1733e in handler::ha_delete_table (this=0x7ff38c015cb0, name=0x7ff3d55063f0 "./test/#sql2-5fe2-9") at /data/src/10.4/sql/handler.cc:4695
#13 0x0000557085d1035d in ha_delete_table (thd=0x7ff38c000af0, table_type=0x557088fc71a0, path=0x7ff3d55063f0 "./test/#sql2-5fe2-9", db=0x7ff3d5508110, alias=0x7ff3d5506800, generate_warning=false) at /data/src/10.4/sql/handler.cc:2588
#14 0x0000557085a8a262 in quick_rm_table (thd=0x7ff38c000af0, base=0x557088fc71a0, db=0x7ff3d5508110, table_name=0x7ff3d5506800, flags=3, table_path=0x0) at /data/src/10.4/sql/sql_table.cc:2767
#15 0x0000557085a9ff8d in mysql_alter_table (thd=0x7ff38c000af0, new_db=0x7ff38c0052b0, new_name=0x7ff38c0056b8, create_info=0x7ff3d5508cf0, table_list=0x7ff38c013270, alter_info=0x7ff3d5508c30, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:10385
#16 0x0000557085b37441 in Sql_cmd_alter_table::execute (this=0x7ff38c013938, thd=0x7ff38c000af0) at /data/src/10.4/sql/sql_alter.cc:508
#17 0x00005570859b5e0d in mysql_execute_command (thd=0x7ff38c000af0) at /data/src/10.4/sql/sql_parse.cc:6102
#18 0x00005570859bb4cf in mysql_parse (thd=0x7ff38c000af0, rawbuf=0x7ff38c013198 "ALTER TABLE t1 FORCE", length=20, parser_state=0x7ff3d550a160, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:7901
#19 0x00005570859a669c in dispatch_command (command=COM_QUERY, thd=0x7ff38c000af0, packet=0x7ff38c1376f1 "", packet_length=20, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1842
#20 0x00005570859a4d29 in do_command (thd=0x7ff38c000af0) at /data/src/10.4/sql/sql_parse.cc:1360
#21 0x0000557085b2dd51 in do_handle_one_connection (connect=0x557089305170) at /data/src/10.4/sql/sql_connect.cc:1412
#22 0x0000557085b2daa0 in handle_one_connection (arg=0x557089305170) at /data/src/10.4/sql/sql_connect.cc:1316
#23 0x00005570865354b7 in pfs_spawn_thread (arg=0x55708930d280) at /data/src/10.4/storage/perfschema/pfs.cc:1862
#24 0x00007ff3de0c24a4 in start_thread (arg=0x7ff3d550b700) at pthread_create.c:456
#25 0x00007ff3dc1f6d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
Reproducible with 10.2-10.5.
No obvious effect on a non-debug build.
10.1 doesn't crash, it behaves weirdly in a different way: CREATE OR REPLACE passes without a complain, but the table doesn't get re-created.
Status
Open
[ 1
]
In Progress
[ 3
]
Assignee
Thirunarayanan Balathandayuthapani
[ thiru
]
Marko Mäkelä
[ marko
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Marko Mäkelä
made changes -
2020-01-28 12:40
Assignee
Marko Mäkelä
[ marko
]
Thirunarayanan Balathandayuthapani
[ thiru
]
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Fix Version/s
10.4.12
[ 24019
]
Fix Version/s
10.2.32
[ 24221
]
Fix Version/s
10.3.23
[ 24222
]
Fix Version/s
10.2
[ 14601
]
Fix Version/s
10.3
[ 22126
]
Fix Version/s
10.4
[ 22408
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Elena Stepanova
made changes -
2020-01-31 13:37
Fix Version/s
10.4.13
[ 24223
]
Fix Version/s
10.4.12
[ 24019
]
Sergei Golubchik
made changes -
2021-12-06 21:50
Workflow
MariaDB v3
[ 103244
]
MariaDB v4
[ 157233
]
{"report":{"fcp":1688.5,"ttfb":868.2000000476837,"pageVisibility":"visible","entityId":82538,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c3381071-bf9a-41c0-85e2-dc33eb13f594","navigationType":0,"readyForUser":1776.6000001430511,"redirectCount":0,"resourceLoadedEnd":2235,"resourceLoadedStart":873.9000000953674,"resourceTiming":[{"duration":285.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":873.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":873.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1159.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":285.2999999523163,"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":874.1000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":874.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1159.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":349.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":874.4000000953674,"connectEnd":874.4000000953674,"connectStart":874.4000000953674,"domainLookupEnd":874.4000000953674,"domainLookupStart":874.4000000953674,"fetchStart":874.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":874.4000000953674,"responseEnd":1224.1000001430511,"responseStart":1224.1000001430511,"secureConnectionStart":874.4000000953674},{"duration":462.40000009536743,"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":874.5,"connectEnd":874.5,"connectStart":874.5,"domainLookupEnd":874.5,"domainLookupStart":874.5,"fetchStart":874.5,"redirectEnd":0,"redirectStart":0,"requestStart":874.5,"responseEnd":1336.9000000953674,"responseStart":1336.9000000953674,"secureConnectionStart":874.5},{"duration":466,"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":874.7000000476837,"connectEnd":874.7000000476837,"connectStart":874.7000000476837,"domainLookupEnd":874.7000000476837,"domainLookupStart":874.7000000476837,"fetchStart":874.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":874.7000000476837,"responseEnd":1340.7000000476837,"responseStart":1340.7000000476837,"secureConnectionStart":874.7000000476837},{"duration":466.2000000476837,"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":874.9000000953674,"connectEnd":874.9000000953674,"connectStart":874.9000000953674,"domainLookupEnd":874.9000000953674,"domainLookupStart":874.9000000953674,"fetchStart":874.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":874.9000000953674,"responseEnd":1341.1000001430511,"responseStart":1341.1000001430511,"secureConnectionStart":874.9000000953674},{"duration":466.39999985694885,"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":875.1000001430511,"connectEnd":875.1000001430511,"connectStart":875.1000001430511,"domainLookupEnd":875.1000001430511,"domainLookupStart":875.1000001430511,"fetchStart":875.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":875.1000001430511,"responseEnd":1341.5,"responseStart":1341.5,"secureConnectionStart":875.1000001430511},{"duration":498,"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":875.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":875.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1373.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":466.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":875.7000000476837,"connectEnd":875.7000000476837,"connectStart":875.7000000476837,"domainLookupEnd":875.7000000476837,"domainLookupStart":875.7000000476837,"fetchStart":875.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":875.7000000476837,"responseEnd":1342,"responseStart":1341.9000000953674,"secureConnectionStart":875.7000000476837},{"duration":497.59999990463257,"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":875.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":875.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1373.5,"responseStart":0,"secureConnectionStart":0},{"duration":466.2999999523163,"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":876.1000001430511,"connectEnd":876.1000001430511,"connectStart":876.1000001430511,"domainLookupEnd":876.1000001430511,"domainLookupStart":876.1000001430511,"fetchStart":876.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":876.1000001430511,"responseEnd":1342.4000000953674,"responseStart":1342.4000000953674,"secureConnectionStart":876.1000001430511},{"duration":1357.2999999523163,"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":876.9000000953674,"connectEnd":876.9000000953674,"connectStart":876.9000000953674,"domainLookupEnd":876.9000000953674,"domainLookupStart":876.9000000953674,"fetchStart":876.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":876.9000000953674,"responseEnd":2234.2000000476837,"responseStart":2234.2000000476837,"secureConnectionStart":876.9000000953674},{"duration":1353.3999998569489,"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":881.6000001430511,"connectEnd":881.6000001430511,"connectStart":881.6000001430511,"domainLookupEnd":881.6000001430511,"domainLookupStart":881.6000001430511,"fetchStart":881.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":881.6000001430511,"responseEnd":2235,"responseStart":2235,"secureConnectionStart":881.6000001430511},{"duration":486.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1384.9000000953674,"connectEnd":1384.9000000953674,"connectStart":1384.9000000953674,"domainLookupEnd":1384.9000000953674,"domainLookupStart":1384.9000000953674,"fetchStart":1384.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1384.9000000953674,"responseEnd":1871.1000001430511,"responseStart":1871.1000001430511,"secureConnectionStart":1384.9000000953674},{"duration":617.7999999523163,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1682.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1682.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2300.100000143051,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":683,"responseStart":868,"responseEnd":874,"domLoading":872,"domInteractive":2256,"domContentLoadedEventStart":2256,"domContentLoadedEventEnd":2300,"domComplete":2776,"loadEventStart":2776,"loadEventEnd":2777,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2240},{"name":"bigPipe.sidebar-id.end","time":2240.800000190735},{"name":"bigPipe.activity-panel-pipe-id.start","time":2241},{"name":"bigPipe.activity-panel-pipe-id.end","time":2243.800000190735},{"name":"activityTabFullyLoaded","time":2335.300000190735}],"measures":[],"correlationId":"6082aecf33bc6","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":123,"dbReadsTimeInMs":21,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}