Note: run the test case with --mem --repeat=N. For me N=100 has always been enough so far, but it can vary on different machines. --mem is important, at least on my machines, apparently the test is not fast/concurrent enough when it's run on disk.
--source include/have_innodb.inc
|
|
--disable_abort_on_error
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
INSERT INTO t1 VALUES (NULL),(NULL);
|
ALTER TABLE t1 ADD COLUMN b INT;
|
ALTER TABLE t1 ADD UNIQUE KEY uidx (b);
|
|
--connect (con1,localhost,root,,test)
|
--send
|
ALTER TABLE t1 DROP COLUMN b;
|
|
--connection default
|
DELETE FROM t1;
|
INSERT INTO t1 (b) VALUES (1),(1);
|
|
# Cleanup
|
--connection con1
|
--reap
|
--disconnect con1
|
--connection default
|
DROP TABLE t1;
|
10.3 cb16bc95ff
|
mysqld: /data/src/10.3/storage/innobase/row/row0log.cc:2435: const mrec_t* row_log_table_apply_op(que_thr_t*, ulint, row_merge_dup_t*, dberr_t*, mem_heap_t*, mem_heap_t*, const mrec_t*, const mrec_t*, ulint*): Assertion `0' failed.
|
180430 18:12:25 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f48b64a0ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x000055bf625b97d3 in row_log_table_apply_op (thr=0x7f48600771c8, new_trx_id_col=1, dup=0x7f48ab74fd80, error=0x7f48ab74fb2c, offsets_heap=0x7f486003fe60, heap=0x7f486003bdd0, mrec=0x7f48ab60c021 "", mrec_end=0x7f48ab60c06c "", offsets=0x7f48600358c0) at /data/src/10.3/storage/innobase/row/row0log.cc:2435
|
#9 0x000055bf625bbd36 in row_log_table_apply_ops (thr=0x7f48600771c8, dup=0x7f48ab74fd80, stage=0x7f4860038100) at /data/src/10.3/storage/innobase/row/row0log.cc:3046
|
#10 0x000055bf625bc2ee in row_log_table_apply (thr=0x7f48600771c8, old_table=0x7f485c03c1e8, table=0x7f48600d48b0, stage=0x7f4860038100) at /data/src/10.3/storage/innobase/row/row0log.cc:3146
|
#11 0x000055bf62495fdf in commit_try_rebuild (ha_alter_info=0x7f48ab7513f0, ctx=0x7f4860014e88, altered_table=0x7f48600d48b0, old_table=0x7f485c085b70, trx=0x7f48b02dcac8, table_name=0x7f485c08a185 "t1") at /data/src/10.3/storage/innobase/handler/handler0alter.cc:8439
|
#12 0x000055bf62490618 in ha_innobase::commit_inplace_alter_table (this=0x7f485c087368, altered_table=0x7f48600d48b0, ha_alter_info=0x7f48ab7513f0, commit=true) at /data/src/10.3/storage/innobase/handler/handler0alter.cc:9314
|
#13 0x000055bf62138de6 in handler::ha_commit_inplace_alter_table (this=0x7f485c087368, altered_table=0x7f48600d48b0, ha_alter_info=0x7f48ab7513f0, commit=true) at /data/src/10.3/sql/handler.cc:4406
|
#14 0x000055bf61f23d58 in mysql_inplace_alter_table (thd=0x7f4860000b00, table_list=0x7f4860013bd8, table=0x7f485c085b70, altered_table=0x7f48600d48b0, ha_alter_info=0x7f48ab7513f0, inplace_supported=HA_ALTER_INPLACE_NO_LOCK_AFTER_PREPARE, target_mdl_request=0x7f48ab751460, alter_ctx=0x7f48ab752060) at /data/src/10.3/sql/sql_table.cc:7535
|
#15 0x000055bf61f29c3f in mysql_alter_table (thd=0x7f4860000b00, new_db=0x7f4860005168, new_name=0x7f4860005518, create_info=0x7f48ab752c50, table_list=0x7f4860013bd8, alter_info=0x7f48ab752b90, order_num=0, order=0x0, ignore=false) at /data/src/10.3/sql/sql_table.cc:9670
|
#16 0x000055bf61faf0fc in Sql_cmd_alter_table::execute (this=0x7f4860014258, thd=0x7f4860000b00) at /data/src/10.3/sql/sql_alter.cc:334
|
#17 0x000055bf61e55f79 in mysql_execute_command (thd=0x7f4860000b00) at /data/src/10.3/sql/sql_parse.cc:6282
|
#18 0x000055bf61e5aa46 in mysql_parse (thd=0x7f4860000b00, rawbuf=0x7f4860013af0 "ALTER TABLE t1 DROP COLUMN b", length=28, parser_state=0x7f48ab7545d0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8001
|
#19 0x000055bf61e48229 in dispatch_command (command=COM_QUERY, thd=0x7f4860000b00, packet=0x7f486000b271 "ALTER TABLE t1 DROP COLUMN b", packet_length=28, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1846
|
#20 0x000055bf61e46c68 in do_command (thd=0x7f4860000b00) at /data/src/10.3/sql/sql_parse.cc:1391
|
#21 0x000055bf61fa9aef in do_handle_one_connection (connect=0x55bf64f3b540) at /data/src/10.3/sql/sql_connect.cc:1402
|
#22 0x000055bf61fa987c in handle_one_connection (arg=0x55bf64f3b540) at /data/src/10.3/sql/sql_connect.cc:1308
|
#23 0x000055bf6242da8d in pfs_spawn_thread (arg=0x55bf64f43d70) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#24 0x00007f48b8177494 in start_thread (arg=0x7f48ab755700) at pthread_create.c:333
|
#25 0x00007f48b655d93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Not reproducible on 10.2.
Initially this problem was interchangeable with MDEV-14906 (in the sense that they both were happening randomly on the same test cases), but MDEV-14906 has been presumably fixed now, and this one still happens.
- is caused by
-
MDEV-11369
Instant add column for InnoDB
-
-
Closed
{"report":{"fcp":921.3999998569489,"ttfb":156.89999985694885,"pageVisibility":"visible","entityId":65423,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"c6b7cec7-8260-4ebe-b766-7f2ec2c783ec","navigationType":0,"readyForUser":984.8999998569489,"redirectCount":0,"resourceLoadedEnd":1289.5999999046326,"resourceLoadedStart":162.39999985694885,"resourceTiming":[{"duration":330.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":162.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":492.5,"responseStart":0,"secureConnectionStart":0},{"duration":329.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":162.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":492.5,"responseStart":0,"secureConnectionStart":0},{"duration":339.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":162.79999995231628,"connectEnd":162.79999995231628,"connectStart":162.79999995231628,"domainLookupEnd":162.79999995231628,"domainLookupStart":162.79999995231628,"fetchStart":162.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.79999995231628,"responseEnd":502.2999999523163,"responseStart":502.2999999523163,"secureConnectionStart":162.79999995231628},{"duration":364.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":162.89999985694885,"connectEnd":162.89999985694885,"connectStart":162.89999985694885,"domainLookupEnd":162.89999985694885,"domainLookupStart":162.89999985694885,"fetchStart":162.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":162.89999985694885,"responseEnd":527.3999998569489,"responseStart":527.3999998569489,"secureConnectionStart":162.89999985694885},{"duration":368.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":163,"connectEnd":163,"connectStart":163,"domainLookupEnd":163,"domainLookupStart":163,"fetchStart":163,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":531.5,"responseStart":531.5,"secureConnectionStart":163},{"duration":368.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":163,"connectEnd":163,"connectStart":163,"domainLookupEnd":163,"domainLookupStart":163,"fetchStart":163,"redirectEnd":0,"redirectStart":0,"requestStart":163,"responseEnd":531.0999999046326,"responseStart":531.0999999046326,"secureConnectionStart":163},{"duration":368.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":163.09999990463257,"connectEnd":163.09999990463257,"connectStart":163.09999990463257,"domainLookupEnd":163.09999990463257,"domainLookupStart":163.09999990463257,"fetchStart":163.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":163.09999990463257,"responseEnd":532,"responseStart":532,"secureConnectionStart":163.09999990463257},{"duration":369.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":163.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":532.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":369.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":163.29999995231628,"connectEnd":163.29999995231628,"connectStart":163.29999995231628,"domainLookupEnd":163.29999995231628,"domainLookupStart":163.29999995231628,"fetchStart":163.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":163.29999995231628,"responseEnd":532.3999998569489,"responseStart":532.3999998569489,"secureConnectionStart":163.29999995231628},{"duration":369.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":163.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":532.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":369.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":163.5,"connectEnd":163.5,"connectStart":163.5,"domainLookupEnd":163.5,"domainLookupStart":163.5,"fetchStart":163.5,"redirectEnd":0,"redirectStart":0,"requestStart":163.5,"responseEnd":532.8999998569489,"responseStart":532.8999998569489,"secureConnectionStart":163.5},{"duration":539,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":168.70000004768372,"connectEnd":168.70000004768372,"connectStart":168.70000004768372,"domainLookupEnd":168.70000004768372,"domainLookupStart":168.70000004768372,"fetchStart":168.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":168.70000004768372,"responseEnd":707.7000000476837,"responseStart":707.7000000476837,"secureConnectionStart":168.70000004768372},{"duration":1120.8999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":168.70000004768372,"connectEnd":168.70000004768372,"connectStart":168.70000004768372,"domainLookupEnd":168.70000004768372,"domainLookupStart":168.70000004768372,"fetchStart":168.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":168.70000004768372,"responseEnd":1289.5999999046326,"responseStart":1289.5999999046326,"secureConnectionStart":168.70000004768372},{"duration":447.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":729.5999999046326,"connectEnd":729.5999999046326,"connectStart":729.5999999046326,"domainLookupEnd":729.5999999046326,"domainLookupStart":729.5999999046326,"fetchStart":729.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":729.5999999046326,"responseEnd":1177.5,"responseStart":1177.5,"secureConnectionStart":729.5999999046326},{"duration":441.90000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":900.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":900.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1342.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":11,"responseStart":157,"responseEnd":167,"domLoading":161,"domInteractive":1310,"domContentLoadedEventStart":1310,"domContentLoadedEventEnd":1346,"domComplete":2033,"loadEventStart":2033,"loadEventEnd":2035,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1291.3999998569489},{"name":"bigPipe.sidebar-id.end","time":1292.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1292.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1294.7000000476837},{"name":"activityTabFullyLoaded","time":1351.7000000476837}],"measures":[],"correlationId":"5438e1e79b73a","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":88,"dbReadsTimeInMs":12,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}