Problem found during RQG testing on
|
10.4 b7a784ae259c0fd8ed1adc88b84dcdaa2441987c 2019-01-23
|
The problem was not reproducible on
|
10.3 d4144c8e010b61a440d422d0f1ca5b066532d173 2019-01-21
|
|
Version: '10.4.2-MariaDB-debug-log' socket: 'bld_debug/mysql-test/var/tmp/mysqld.1.sock' port: 16000 Source distribution
|
mysqld: storage/innobase/row/row0log.cc:3057: dberr_t row_log_table_apply_ops(que_thr_t*, row_merge_dup_t*, ut_stage_alter_t*): Assertion `0' failed.
|
190123 18:48:13 [ERROR] mysqld got signal 6 ;
|
...
|
Query (0x7fe3b0013340): ALTER TABLE t4 MODIFY COLUMN col2 INT NOT NULL /* E_R Thread2 QNO 22 CON_ID 16 */
|
Connection ID (thread ID): 11
|
Status: NOT_KILLED
|
...
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x00007fe415a3ef5d in __GI_abort () at abort.c:90
|
#6 0x00007fe415a34f17 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x55beb1bd1e71 "0", file=file@entry=0x55beb1bd36a8 "storage/innobase/row/row0log.cc", line=line@entry=3057, function=function@entry=0x55beb1bd7800 <row_log_table_apply_ops(que_thr_t*, row_merge_dup_t*, ut_stage_alter_t*)::__PRETTY_FUNCTION__> "dberr_t row_log_table_apply_ops(que_thr_t*, row_merge_dup_t*, ut_stage_alter_t*)") at assert.c:92
|
#7 0x00007fe415a34fc2 in __GI___assert_fail (assertion=0x55beb1bd1e71 "0", file=0x55beb1bd36a8 "storage/innobase/row/row0log.cc", line=3057, function=0x55beb1bd7800 <row_log_table_apply_ops(que_thr_t*, row_merge_dup_t*, ut_stage_alter_t*)::__PRETTY_FUNCTION__> "dberr_t row_log_table_apply_ops(que_thr_t*, row_merge_dup_t*, ut_stage_alter_t*)") at assert.c:101
|
#8 0x000055beb14362b7 in row_log_table_apply_ops (thr=0x7fe3b0055818, dup=0x7fe40ac810a0, stage=0x7fe3b0055d20) at storage/innobase/row/row0log.cc:3057
|
#9 0x000055beb143666c in row_log_table_apply (thr=0x7fe3b0055818, old_table=0x7fe3b0026588, table=0x7fe3b005ad98, stage=0x7fe3b0055d20, new_table=0x7fe3b0020948) at storage/innobase/row/row0log.cc:3131
|
#10 0x000055beb130a9c1 in commit_try_rebuild (ha_alter_info=0x7fe40ac825c0, ctx=0x7fe3b0015798, altered_table=0x7fe3b005ad98, old_table=0x7fe3b0042df8, trx=0x7fe410044390, table_name=0x7fe3b0041d25 "t4") at storage/innobase/handler/handler0alter.cc:9761
|
#11 0x000055beb12fd99a in ha_innobase::commit_inplace_alter_table (this=0x7fe3b0055e30, altered_table=0x7fe3b005ad98, ha_alter_info=0x7fe40ac825c0, commit=true) at storage/innobase/handler/handler0alter.cc:10786
|
#12 0x000055beb10976f3 in handler::ha_commit_inplace_alter_table (this=0x7fe3b0055e30, altered_table=0x7fe3b005ad98, ha_alter_info=0x7fe40ac825c0, commit=true) at sql/handler.cc:4666
|
#13 0x000055beb0e39604 in mysql_inplace_alter_table (thd=0x7fe3b0000ce8, table_list=0x7fe3b0013490, table=0x7fe3b0042df8, altered_table=0x7fe3b005ad98, ha_alter_info=0x7fe40ac825c0, inplace_supported=HA_ALTER_INPLACE_COPY_NO_LOCK, target_mdl_request=0x7fe40ac826f0, alter_ctx=0x7fe40ac832e0) at sql/sql_table.cc:7578
|
#14 0x000055beb0e3f442 in mysql_alter_table (thd=0x7fe3b0000ce8, new_db=0x7fe3b00053a8, new_name=0x7fe3b0005778, create_info=0x7fe40ac83ed0, table_list=0x7fe3b0013490, alter_info=0x7fe40ac83e10, order_num=0, order=0x0, ignore=false) at sql/sql_table.cc:9676
|
#15 0x000055beb0eca299 in Sql_cmd_alter_table::execute (this=0x7fe3b0013be8, thd=0x7fe3b0000ce8) at sql/sql_alter.cc:493
|
#16 0x000055beb0d67385 in mysql_execute_command (thd=0x7fe3b0000ce8) at sql/sql_parse.cc:6345
|
#17 0x000055beb0d6c76a in mysql_parse (thd=0x7fe3b0000ce8, rawbuf=0x7fe3b0013340 "ALTER TABLE t4 MODIFY COLUMN col2 INT NOT NULL /* E_R Thread2 QNO 22 CON_ID 16 */", length=81, parser_state=0x7fe40ac851f0, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:8156
|
#18 0x000055beb0d57cc2 in dispatch_command (command=COM_QUERY, thd=0x7fe3b0000ce8, packet=0x7fe3b000b019 "ALTER TABLE t4 MODIFY COLUMN col2 INT NOT NULL /* E_R Thread2 QNO 22 CON_ID 16 */ ", packet_length=82, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1841
|
#19 0x000055beb0d5660e in do_command (thd=0x7fe3b0000ce8) at sql/sql_parse.cc:1394
|
#20 0x000055beb0ec41d7 in do_handle_one_connection (connect=0x55beb4815788) at sql/sql_connect.cc:1398
|
#21 0x000055beb0ec3f45 in handle_one_connection (arg=0x55beb4815788) at sql/sql_connect.cc:1301
|
#22 0x000055beb17e9676 in pfs_spawn_thread (arg=0x55beb4872798) at storage/perfschema/pfs.cc:1862
|
#23 0x00007fe4168e47fc in start_thread (arg=0x7fe40ac86700) at pthread_create.c:465
|
|
{"report":{"fcp":783.7000000476837,"ttfb":181.09999990463257,"pageVisibility":"visible","entityId":72121,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"536e29c5-5b75-41b0-90e1-331045ad428d","navigationType":0,"readyForUser":869.5,"redirectCount":0,"resourceLoadedEnd":503.40000009536743,"resourceLoadedStart":187,"resourceTiming":[{"duration":30,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":187,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":187,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":217,"responseStart":0,"secureConnectionStart":0},{"duration":30.40000009536743,"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":187.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":187.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":217.70000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":203.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":187.40000009536743,"connectEnd":187.40000009536743,"connectStart":187.40000009536743,"domainLookupEnd":187.40000009536743,"domainLookupStart":187.40000009536743,"fetchStart":187.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":224.5,"responseEnd":390.90000009536743,"responseStart":244.09999990463257,"secureConnectionStart":187.40000009536743},{"duration":315.90000009536743,"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":187.5,"connectEnd":187.5,"connectStart":187.5,"domainLookupEnd":187.5,"domainLookupStart":187.5,"fetchStart":187.5,"redirectEnd":0,"redirectStart":0,"requestStart":224.79999995231628,"responseEnd":503.40000009536743,"responseStart":250,"secureConnectionStart":187.5},{"duration":71.80000019073486,"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":187.59999990463257,"connectEnd":187.59999990463257,"connectStart":187.59999990463257,"domainLookupEnd":187.59999990463257,"domainLookupStart":187.59999990463257,"fetchStart":187.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":225,"responseEnd":259.40000009536743,"responseStart":253.09999990463257,"secureConnectionStart":187.59999990463257},{"duration":71.79999995231628,"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":187.90000009536743,"connectEnd":187.90000009536743,"connectStart":187.90000009536743,"domainLookupEnd":187.90000009536743,"domainLookupStart":187.90000009536743,"fetchStart":187.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":225.09999990463257,"responseEnd":259.7000000476837,"responseStart":253.90000009536743,"secureConnectionStart":187.90000009536743},{"duration":72.5,"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":187.90000009536743,"connectEnd":187.90000009536743,"connectStart":187.90000009536743,"domainLookupEnd":187.90000009536743,"domainLookupStart":187.90000009536743,"fetchStart":187.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":225.5,"responseEnd":260.40000009536743,"responseStart":255.5,"secureConnectionStart":187.90000009536743},{"duration":35.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":188.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":188.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":223.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":73.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":188.09999990463257,"connectEnd":188.09999990463257,"connectStart":188.09999990463257,"domainLookupEnd":188.09999990463257,"domainLookupStart":188.09999990463257,"fetchStart":188.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":228,"responseEnd":261.2999999523163,"responseStart":257.2999999523163,"secureConnectionStart":188.09999990463257},{"duration":36.09999990463257,"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":188.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":188.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":224.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":72.59999990463257,"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":188.40000009536743,"connectEnd":188.40000009536743,"connectStart":188.40000009536743,"domainLookupEnd":188.40000009536743,"domainLookupStart":188.40000009536743,"fetchStart":188.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":228.40000009536743,"responseEnd":261,"responseStart":256.59999990463257,"secureConnectionStart":188.40000009536743},{"duration":306.7999999523163,"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":193.70000004768372,"connectEnd":193.70000004768372,"connectStart":193.70000004768372,"domainLookupEnd":193.70000004768372,"domainLookupStart":193.70000004768372,"fetchStart":193.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":271.09999990463257,"responseEnd":500.5,"responseStart":492.2999999523163,"secureConnectionStart":193.70000004768372},{"duration":306.7000000476837,"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":195.09999990463257,"connectEnd":195.09999990463257,"connectStart":195.09999990463257,"domainLookupEnd":195.09999990463257,"domainLookupStart":195.09999990463257,"fetchStart":195.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":298.40000009536743,"responseEnd":501.7999999523163,"responseStart":496.40000009536743,"secureConnectionStart":195.09999990463257},{"duration":99.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":539,"connectEnd":539,"connectStart":539,"domainLookupEnd":539,"domainLookupStart":539,"fetchStart":539,"redirectEnd":0,"redirectStart":0,"requestStart":607.2000000476837,"responseEnd":638.7999999523163,"responseStart":637.7000000476837,"secureConnectionStart":539}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":32,"responseStart":181,"responseEnd":195,"domLoading":185,"domInteractive":949,"domContentLoadedEventStart":949,"domContentLoadedEventEnd":1008,"domComplete":1496,"loadEventStart":1496,"loadEventEnd":1496,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":913.5},{"name":"bigPipe.sidebar-id.end","time":914.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":914.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":918.0999999046326},{"name":"activityTabFullyLoaded","time":1059.4000000953674}],"measures":[],"correlationId":"410fa792b2015","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":82,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
prt2 – Protocol of my MTR test run
ts_15.tgz – Achive with the MTR test case.
How to reproduce the problem?
Please use a Linux because the test invokes a shellscript.
cd <source tree>/mysql-test
tar xvzf ts_15.tgz
./mysql-test-run.pl --mem ts_15
This is a plain brute force test (two users run a DDL/DML mix and one user observes).
You might need several runs of that test till you get the assert.
But at least I hit the assert with every run of the test.