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":1223.0999999046326,"ttfb":374,"pageVisibility":"visible","entityId":65423,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"ceab5c74-dcc4-41b9-9501-e4594343adde","navigationType":0,"readyForUser":1315.7000002861023,"redirectCount":0,"resourceLoadedEnd":1413.0999999046326,"resourceLoadedStart":379.40000009536743,"resourceTiming":[{"duration":349.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":379.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":379.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":728.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":349.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":379.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":379.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":729.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":358.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":379.90000009536743,"connectEnd":379.90000009536743,"connectStart":379.90000009536743,"domainLookupEnd":379.90000009536743,"domainLookupStart":379.90000009536743,"fetchStart":379.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":379.90000009536743,"responseEnd":738.4000000953674,"responseStart":738.4000000953674,"secureConnectionStart":379.90000009536743},{"duration":465.2000002861023,"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":380,"connectEnd":380,"connectStart":380,"domainLookupEnd":380,"domainLookupStart":380,"fetchStart":380,"redirectEnd":0,"redirectStart":0,"requestStart":380,"responseEnd":845.2000002861023,"responseStart":845.2000002861023,"secureConnectionStart":380},{"duration":469.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":380.2000002861023,"connectEnd":380.2000002861023,"connectStart":380.2000002861023,"domainLookupEnd":380.2000002861023,"domainLookupStart":380.2000002861023,"fetchStart":380.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":380.2000002861023,"responseEnd":849.3000001907349,"responseStart":849.3000001907349,"secureConnectionStart":380.2000002861023},{"duration":467.09999990463257,"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":382.7000002861023,"connectEnd":382.7000002861023,"connectStart":382.7000002861023,"domainLookupEnd":382.7000002861023,"domainLookupStart":382.7000002861023,"fetchStart":382.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":382.7000002861023,"responseEnd":849.8000001907349,"responseStart":849.8000001907349,"secureConnectionStart":382.7000002861023},{"duration":467.09999990463257,"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":382.90000009536743,"connectEnd":382.90000009536743,"connectStart":382.90000009536743,"domainLookupEnd":382.90000009536743,"domainLookupStart":382.90000009536743,"fetchStart":382.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":382.90000009536743,"responseEnd":850,"responseStart":850,"secureConnectionStart":382.90000009536743},{"duration":500.59999990463257,"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":383.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":383.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":883.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":467.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":383.5,"connectEnd":383.5,"connectStart":383.5,"domainLookupEnd":383.5,"domainLookupStart":383.5,"fetchStart":383.5,"redirectEnd":0,"redirectStart":0,"requestStart":383.5,"responseEnd":850.5999999046326,"responseStart":850.5999999046326,"secureConnectionStart":383.5},{"duration":500.40000009536743,"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":383.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":383.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":884,"responseStart":0,"secureConnectionStart":0},{"duration":467.2999997138977,"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":383.80000019073486,"connectEnd":383.80000019073486,"connectStart":383.80000019073486,"domainLookupEnd":383.80000019073486,"domainLookupStart":383.80000019073486,"fetchStart":383.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":383.80000019073486,"responseEnd":851.0999999046326,"responseStart":851.0999999046326,"secureConnectionStart":383.80000019073486},{"duration":800.5,"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":391,"connectEnd":391,"connectStart":391,"domainLookupEnd":391,"domainLookupStart":391,"fetchStart":391,"redirectEnd":0,"redirectStart":0,"requestStart":391,"responseEnd":1191.5,"responseStart":1191.4000000953674,"secureConnectionStart":391},{"duration":917,"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":391,"connectEnd":391,"connectStart":391,"domainLookupEnd":391,"domainLookupStart":391,"fetchStart":391,"redirectEnd":0,"redirectStart":0,"requestStart":391,"responseEnd":1308,"responseStart":1308,"secureConnectionStart":391},{"duration":289,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":904.3000001907349,"connectEnd":904.3000001907349,"connectStart":904.3000001907349,"domainLookupEnd":904.3000001907349,"domainLookupStart":904.3000001907349,"fetchStart":904.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":904.3000001907349,"responseEnd":1193.3000001907349,"responseStart":1193.3000001907349,"secureConnectionStart":904.3000001907349},{"duration":197.09999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1216.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1216.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1413.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":172.89999961853027,"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":1240.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1240.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1413.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":152.59999990463257,"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":1241.3000001907349,"connectEnd":1241.3000001907349,"connectStart":1241.3000001907349,"domainLookupEnd":1241.3000001907349,"domainLookupStart":1241.3000001907349,"fetchStart":1241.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1241.3000001907349,"responseEnd":1393.9000000953674,"responseStart":1393.9000000953674,"secureConnectionStart":1241.3000001907349},{"duration":159.09999990463257,"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":1241.8000001907349,"connectEnd":1241.8000001907349,"connectStart":1241.8000001907349,"domainLookupEnd":1241.8000001907349,"domainLookupStart":1241.8000001907349,"fetchStart":1241.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1241.8000001907349,"responseEnd":1400.9000000953674,"responseStart":1400.9000000953674,"secureConnectionStart":1241.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":218,"responseStart":374,"responseEnd":390,"domLoading":377,"domInteractive":1443,"domContentLoadedEventStart":1443,"domContentLoadedEventEnd":1492,"domComplete":2563,"loadEventStart":2563,"loadEventEnd":2564,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1418},{"name":"bigPipe.sidebar-id.end","time":1419.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1419.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1422.3000001907349},{"name":"activityTabFullyLoaded","time":1513.3000001907349}],"measures":[],"correlationId":"96924fc5c745c7","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":92,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}