--source include/have_innodb.inc
|
|
CREATE TABLE t1 (c VARCHAR(1024), KEY(c)) ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
|
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
|
TRUNCATE TABLE t1;
|
|
# Cleanup
|
DROP TABLE t1;
|
10.3 06e5f28f9
|
2018-11-23 15:22:36 13 [ERROR] InnoDB: Cannot rename table 'test/#sql-ib269-2948221008' to 'test/t8' since the dictionary cache already contains 'test/t8'.
|
2018-11-23 15:22:36 0x7f1b1dbb5700 InnoDB: Assertion failure in file /data/src/10.3/storage/innobase/row/row0mysql.cc line 2341
|
InnoDB: Failing assertion: trx->dict_operation_lock_mode == RW_X_LATCH
|
|
#6 0x000055db7a8f213d in ut_dbg_assertion_failed (expr=0x55db7ae96aa8 "trx->dict_operation_lock_mode == RW_X_LATCH", file=0x55db7ae95980 "/data/src/10.3/storage/innobase/row/row0mysql.cc", line=2341) at /data/src/10.3/storage/innobase/ut/ut0dbg.cc:60
|
#7 0x000055db7a8244a7 in row_mysql_unlock_data_dictionary (trx=0x7f1b30093450) at /data/src/10.3/storage/innobase/row/row0mysql.cc:2341
|
#8 0x000055db7a6e7639 in ha_innobase::create (this=0x7f1ac0179128, name=0x7f1ac008b168 "test/t8", form=0x7f1ac009aa30, create_info=0x7f1b1dbb31c0, file_per_table=true, trx=0x7f1b30093450) at /data/src/10.3/storage/innobase/handler/ha_innodb.cc:12587
|
#9 0x000055db7a6d49a4 in ha_innobase::truncate (this=0x7f1ac0179128) at /data/src/10.3/storage/innobase/handler/ha_innodb.cc:13200
|
#10 0x000055db7a3b0247 in handler::ha_truncate (this=0x7f1ac0179128) at /data/src/10.3/sql/handler.cc:4306
|
#11 0x000055db7a57a29a in Sql_cmd_truncate_table::handler_truncate (this=0x7f1ac002a670, thd=0x7f1ac0000b00, table_ref=0x7f1ac002a020, is_tmp_table=false) at /data/src/10.3/sql/sql_truncate.cc:242
|
#12 0x000055db7a57a9a1 in Sql_cmd_truncate_table::truncate_table (this=0x7f1ac002a670, thd=0x7f1ac0000b00, table_ref=0x7f1ac002a020) at /data/src/10.3/sql/sql_truncate.cc:448
|
#13 0x000055db7a57ab26 in Sql_cmd_truncate_table::execute (this=0x7f1ac002a670, thd=0x7f1ac0000b00) at /data/src/10.3/sql/sql_truncate.cc:504
|
#14 0x000055db7a0b7043 in mysql_execute_command (thd=0x7f1ac0000b00) at /data/src/10.3/sql/sql_parse.cc:6283
|
#15 0x000055db7a0bc113 in mysql_parse (thd=0x7f1ac0000b00, rawbuf=0x7f1ac0029f18 "TRUNCATE TABLE t8 /* QNO 8334 CON_ID 18 */", length=42, parser_state=0x7f1b1dbb4640, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8090
|
#16 0x000055db7a0a92d9 in dispatch_command (command=COM_QUERY, thd=0x7f1ac0000b00, packet=0x7f1ac000b1e1 "TRUNCATE TABLE t8 /* QNO 8334 CON_ID 18 */", packet_length=42, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1850
|
#17 0x000055db7a0a7cfd in do_command (thd=0x7f1ac0000b00) at /data/src/10.3/sql/sql_parse.cc:1395
|
#18 0x000055db7a20f9d2 in do_handle_one_connection (connect=0x55db7d139b70) at /data/src/10.3/sql/sql_connect.cc:1402
|
#19 0x000055db7a20f756 in handle_one_connection (arg=0x55db7d139b70) at /data/src/10.3/sql/sql_connect.cc:1308
|
#20 0x00007f1b34e3f494 in start_thread (arg=0x7f1b1dbb5700) at pthread_create.c:333
|
#21 0x00007f1b3344093f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Not reproducible on 10.1.
{"report":{"fcp":1246.5,"ttfb":253,"pageVisibility":"visible","entityId":71024,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9e0970d5-2ee9-42e0-9914-ec5f0a8cedae","navigationType":0,"readyForUser":1335.8000000715256,"redirectCount":0,"resourceLoadedEnd":1638.3000000715256,"resourceLoadedStart":258.5,"resourceTiming":[{"duration":302.7000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":258.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":258.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":561.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":302.6999999284744,"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":258.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":258.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":561.5,"responseStart":0,"secureConnectionStart":0},{"duration":310.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":259,"connectEnd":259,"connectStart":259,"domainLookupEnd":259,"domainLookupStart":259,"fetchStart":259,"redirectEnd":0,"redirectStart":0,"requestStart":259,"responseEnd":569.6000000238419,"responseStart":569.6000000238419,"secureConnectionStart":259},{"duration":597.8999999761581,"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":259.2000000476837,"connectEnd":259.2000000476837,"connectStart":259.2000000476837,"domainLookupEnd":259.2000000476837,"domainLookupStart":259.2000000476837,"fetchStart":259.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":259.2000000476837,"responseEnd":857.1000000238419,"responseStart":857.1000000238419,"secureConnectionStart":259.2000000476837},{"duration":602.2999999523163,"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":259.40000009536743,"connectEnd":259.40000009536743,"connectStart":259.40000009536743,"domainLookupEnd":259.40000009536743,"domainLookupStart":259.40000009536743,"fetchStart":259.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":259.40000009536743,"responseEnd":861.7000000476837,"responseStart":861.7000000476837,"secureConnectionStart":259.40000009536743},{"duration":602.3999999761581,"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":259.7000000476837,"connectEnd":259.7000000476837,"connectStart":259.7000000476837,"domainLookupEnd":259.7000000476837,"domainLookupStart":259.7000000476837,"fetchStart":259.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":259.7000000476837,"responseEnd":862.1000000238419,"responseStart":862.1000000238419,"secureConnectionStart":259.7000000476837},{"duration":603.6000000238419,"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":259.8000000715256,"connectEnd":259.8000000715256,"connectStart":259.8000000715256,"domainLookupEnd":259.8000000715256,"domainLookupStart":259.8000000715256,"fetchStart":259.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":259.8000000715256,"responseEnd":863.4000000953674,"responseStart":863.4000000953674,"secureConnectionStart":259.8000000715256},{"duration":606,"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":260,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":866,"responseStart":0,"secureConnectionStart":0},{"duration":603.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":260.10000002384186,"connectEnd":260.10000002384186,"connectStart":260.10000002384186,"domainLookupEnd":260.10000002384186,"domainLookupStart":260.10000002384186,"fetchStart":260.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":260.10000002384186,"responseEnd":863.8000000715256,"responseStart":863.8000000715256,"secureConnectionStart":260.10000002384186},{"duration":605.7999999523163,"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":260.3000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":866.1000000238419,"responseStart":0,"secureConnectionStart":0},{"duration":604,"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":260.40000009536743,"connectEnd":260.40000009536743,"connectStart":260.40000009536743,"domainLookupEnd":260.40000009536743,"domainLookupStart":260.40000009536743,"fetchStart":260.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":260.40000009536743,"responseEnd":864.4000000953674,"responseStart":864.4000000953674,"secureConnectionStart":260.40000009536743},{"duration":718.8999999761581,"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":266.3000000715256,"connectEnd":266.3000000715256,"connectStart":266.3000000715256,"domainLookupEnd":266.3000000715256,"domainLookupStart":266.3000000715256,"fetchStart":266.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":266.3000000715256,"responseEnd":985.2000000476837,"responseStart":985.2000000476837,"secureConnectionStart":266.3000000715256},{"duration":1345.7000000476837,"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":266.5,"connectEnd":266.5,"connectStart":266.5,"domainLookupEnd":266.5,"domainLookupStart":266.5,"fetchStart":266.5,"redirectEnd":0,"redirectStart":0,"requestStart":266.5,"responseEnd":1612.2000000476837,"responseStart":1612.2000000476837,"secureConnectionStart":266.5},{"duration":147.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":719.1000000238419,"connectEnd":719.1000000238419,"connectStart":719.1000000238419,"domainLookupEnd":719.1000000238419,"domainLookupStart":719.1000000238419,"fetchStart":719.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":719.1000000238419,"responseEnd":866.8000000715256,"responseStart":866.8000000715256,"secureConnectionStart":719.1000000238419},{"duration":292.60000002384186,"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":882.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":882.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1174.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":748.3999999761581,"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":883.4000000953674,"connectEnd":883.4000000953674,"connectStart":883.4000000953674,"domainLookupEnd":883.4000000953674,"domainLookupStart":883.4000000953674,"fetchStart":883.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":883.4000000953674,"responseEnd":1631.8000000715256,"responseStart":1631.8000000715256,"secureConnectionStart":883.4000000953674},{"duration":448.10000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1235.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1235.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1683.3000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":406.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1252.2000000476837,"connectEnd":1252.2000000476837,"connectStart":1252.2000000476837,"domainLookupEnd":1252.2000000476837,"domainLookupStart":1252.2000000476837,"fetchStart":1252.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1252.2000000476837,"responseEnd":1658.4000000953674,"responseStart":1658.4000000953674,"secureConnectionStart":1252.2000000476837},{"duration":754.6000000238419,"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":883.7000000476837,"connectEnd":883.7000000476837,"connectStart":883.7000000476837,"domainLookupEnd":883.7000000476837,"domainLookupStart":883.7000000476837,"fetchStart":883.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":883.7000000476837,"responseEnd":1638.3000000715256,"responseStart":1638.3000000715256,"secureConnectionStart":883.7000000476837}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":87,"responseStart":253,"responseEnd":262,"domLoading":257,"domInteractive":1639,"domContentLoadedEventStart":1639,"domContentLoadedEventEnd":1682,"domComplete":2266,"loadEventStart":2266,"loadEventEnd":2267,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1614},{"name":"bigPipe.sidebar-id.end","time":1614.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1615.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1616.8000000715256},{"name":"activityTabFullyLoaded","time":1699.6000000238419}],"measures":[],"correlationId":"e839c1994e3614","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":20,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This occurs due to misplaced error handling in
MDEV-13564:diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index e6c57b015a0..96ed8de1adf 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -12839,8 +12839,8 @@ ha_innobase::create(
row_mysql_unlock_data_dictionary(trx);
if (own_trx) {
trx_free_for_mysql(trx);
- DBUG_RETURN(error);
}
+ DBUG_RETURN(error);
}
There also is an error in ALTER TABLE that fails to enforce the maximum index size. With ALGORITHM=COPY, the ALTER TABLE would fail:
--error ER_INDEX_COLUMN_TOO_LONG
This has been filed as
MDEV-17833.