10.3 3722372ae56b7ea90
|
mysqld: /data/src/10.3/storage/innobase/include/trx0sys.h:186: bool trx_id_check(const void*, trx_id_t): Assertion `id == 0 || id > trx_id' failed.
|
171024 20:59:53 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f00bc64bee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x00005639db364f32 in trx_id_check (db_trx_id=0x7f00b6258082, trx_id=1287) at /data/src/10.3/storage/innobase/include/trx0sys.h:186
|
#9 0x00005639db384c68 in row_log_table_apply_delete (thr=0x7f006c14b160, trx_id_col=1, mrec=0x7f00b40df01f "\200", moffsets=0x7f006c17d230, offsets_heap=0x7f006c0645d0, heap=0x7f006c060540, log=0x7f006c040400, save_ext=0x0, ext_size=0) at /data/src/10.3/storage/innobase/row/row0log.cc:2065
|
#10 0x00005639db3869b9 in row_log_table_apply_op (thr=0x7f006c14b160, new_trx_id_col=1, dup=0x7f00b426d560, error=0x7f00b426d30c, offsets_heap=0x7f006c0645d0, heap=0x7f006c060540, mrec=0x7f00b40df01f "\200", mrec_end=0x7f00b40df030 "", offsets=0x7f006c17d230) at /data/src/10.3/storage/innobase/row/row0log.cc:2624
|
#11 0x00005639db388ca8 in row_log_table_apply_ops (thr=0x7f006c14b160, dup=0x7f00b426d560, stage=0x7f006c17b350) at /data/src/10.3/storage/innobase/row/row0log.cc:3177
|
#12 0x00005639db389267 in row_log_table_apply (thr=0x7f006c14b160, old_table=0x7f006c093d88, table=0x7f006c152bd0, stage=0x7f006c17b350) at /data/src/10.3/storage/innobase/row/row0log.cc:3276
|
#13 0x00005639db259e2f in commit_try_rebuild (ha_alter_info=0x7f00b426e520, ctx=0x7f006c015fc8, altered_table=0x7f006c152bd0, old_table=0x7f006c14fbd0, trx=0x7f00b65780d8, table_name=0x7f006c14e20d "t2") at /data/src/10.3/storage/innobase/handler/handler0alter.cc:8301
|
#14 0x00005639db254a90 in ha_innobase::commit_inplace_alter_table (this=0x7f006c1507f8, altered_table=0x7f006c152bd0, ha_alter_info=0x7f00b426e520, commit=true) at /data/src/10.3/storage/innobase/handler/handler0alter.cc:9137
|
#15 0x00005639daef0c76 in handler::ha_commit_inplace_alter_table (this=0x7f006c1507f8, altered_table=0x7f006c152bd0, ha_alter_info=0x7f00b426e520, commit=true) at /data/src/10.3/sql/handler.cc:4251
|
#16 0x00005639dacf7f58 in mysql_inplace_alter_table (thd=0x7f006c000b00, table_list=0x7f006c014ae8, table=0x7f006c14fbd0, altered_table=0x7f006c152bd0, ha_alter_info=0x7f00b426e520, inplace_supported=HA_ALTER_INPLACE_NO_LOCK_AFTER_PREPARE, target_mdl_request=0x7f00b426e590, alter_ctx=0x7f00b426f150) at /data/src/10.3/sql/sql_table.cc:7229
|
#17 0x00005639dacfd23c in mysql_alter_table (thd=0x7f006c000b00, new_db=0x7f006c0150f8 "test", new_name=0x0, create_info=0x7f00b426fd60, table_list=0x7f006c014ae8, alter_info=0x7f00b426fcb0, order_num=0, order=0x0, ignore=false) at /data/src/10.3/sql/sql_table.cc:9205
|
#18 0x00005639dad7be7b in Sql_cmd_alter_table::execute (this=0x7f006c015100, thd=0x7f006c000b00) at /data/src/10.3/sql/sql_alter.cc:331
|
#19 0x00005639dac2f172 in mysql_execute_command (thd=0x7f006c000b00) at /data/src/10.3/sql/sql_parse.cc:6236
|
#20 0x00005639dac33a1c in mysql_parse (thd=0x7f006c000b00, rawbuf=0x7f006c0149f8 "ALTER TABLE t2 ROW_FORMAT=DYNAMIC", length=33, parser_state=0x7f00b4271610, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:7921
|
#21 0x00005639dac211bd in dispatch_command (command=COM_QUERY, thd=0x7f006c000b00, packet=0x7f006c08fce1 "ALTER TABLE t2 ROW_FORMAT=DYNAMIC", packet_length=33, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1819
|
#22 0x00005639dac1fc1b in do_command (thd=0x7f006c000b00) at /data/src/10.3/sql/sql_parse.cc:1370
|
#23 0x00005639dad769f4 in do_handle_one_connection (connect=0x5639de539bc0) at /data/src/10.3/sql/sql_connect.cc:1418
|
#24 0x00005639dad76781 in handle_one_connection (arg=0x5639de539bc0) at /data/src/10.3/sql/sql_connect.cc:1324
|
#25 0x00005639db1f0f4c in pfs_spawn_thread (arg=0x5639de5567b0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
|
#26 0x00007f00be590494 in start_thread (arg=0x7f00b4272700) at pthread_create.c:333
|
#27 0x00007f00bc70893f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
The test case is not deterministic. If it doesn't fail right away, try running with --repeat.
Also, running with innodb_flush_log_at_trx_commit=2 significantly increased the probability of the race condition in original stress tests while running on disk – once in a few minutes vs once in many hours; and further, running in shm increased the probability even more, to once in a few seconds. Currently the MTR test below fails pretty much every time for me, even on disk and without innodb_flush_log_at_trx_commit=2, so I cannot say whether those options have any effect on it.
--source include/have_innodb.inc
|
|
CREATE TABLE t1 (pk INT PRIMARY KEY, i INT) ENGINE=InnoDB;
|
CREATE TABLE t2 (pk INT PRIMARY KEY, i INT) ENGINE=InnoDB;
|
|
--connect (con1,localhost,root,,test)
|
BEGIN;
|
--send
|
INSERT INTO t1 VALUES (1,10);
|
|
--connection default
|
--send
|
ALTER TABLE t2 ROW_FORMAT=DYNAMIC;
|
|
--connection con1
|
--reap
|
INSERT INTO t2 VALUES (2,20);
|
ROLLBACK;
|
|
--connection default
|
--reap
|
|
# Cleanup
|
--disconnect con1
|
--connection default
|
DROP TABLE t1, t2;
|
Does not fail on 10.2.
No visible effect on 10.3 non-debug build.
The problem rather badly affects upgrade tests on 10.3 (the laste step, when DDL/DML is running on the upgraded server), causes a lot of failures unrelated to upgrade as such.
{"report":{"fcp":912,"ttfb":209.30000019073486,"pageVisibility":"visible","entityId":63176,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"faf32934-7b77-4d0b-b57a-1c42bced63b1","navigationType":0,"readyForUser":1035.5999994277954,"redirectCount":0,"resourceLoadedEnd":826.1999998092651,"resourceLoadedStart":215,"resourceTiming":[{"duration":132.5999994277954,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":215,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":347.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":132.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":215.39999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":347.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":166.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":215.5999994277954,"connectEnd":215.5999994277954,"connectStart":215.5999994277954,"domainLookupEnd":215.5999994277954,"domainLookupStart":215.5999994277954,"fetchStart":215.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":215.5999994277954,"responseEnd":382,"responseStart":382,"secureConnectionStart":215.5999994277954},{"duration":246.79999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":215.80000019073486,"connectEnd":215.80000019073486,"connectStart":215.80000019073486,"domainLookupEnd":215.80000019073486,"domainLookupStart":215.80000019073486,"fetchStart":215.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":215.80000019073486,"responseEnd":462.5999994277954,"responseStart":462.5999994277954,"secureConnectionStart":215.80000019073486},{"duration":250.69999980926514,"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":216,"connectEnd":216,"connectStart":216,"domainLookupEnd":216,"domainLookupStart":216,"fetchStart":216,"redirectEnd":0,"redirectStart":0,"requestStart":216,"responseEnd":466.69999980926514,"responseStart":466.69999980926514,"secureConnectionStart":216},{"duration":251.19999980926514,"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":216.19999980926514,"connectEnd":216.19999980926514,"connectStart":216.19999980926514,"domainLookupEnd":216.19999980926514,"domainLookupStart":216.19999980926514,"fetchStart":216.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":216.19999980926514,"responseEnd":467.3999996185303,"responseStart":467.3999996185303,"secureConnectionStart":216.19999980926514},{"duration":251.60000038146973,"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":216.39999961853027,"connectEnd":216.39999961853027,"connectStart":216.39999961853027,"domainLookupEnd":216.39999961853027,"domainLookupStart":216.39999961853027,"fetchStart":216.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":216.39999961853027,"responseEnd":468,"responseStart":468,"secureConnectionStart":216.39999961853027},{"duration":315.1000003814697,"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":216.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":216.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":531.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":251.79999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":216.80000019073486,"connectEnd":216.80000019073486,"connectStart":216.80000019073486,"domainLookupEnd":216.80000019073486,"domainLookupStart":216.80000019073486,"fetchStart":216.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":216.80000019073486,"responseEnd":468.5999994277954,"responseStart":468.5999994277954,"secureConnectionStart":216.80000019073486},{"duration":314.9000005722046,"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":216.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":216.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":531.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":252.19999980926514,"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":217,"connectEnd":217,"connectStart":217,"domainLookupEnd":217,"domainLookupStart":217,"fetchStart":217,"redirectEnd":0,"redirectStart":0,"requestStart":217,"responseEnd":469.19999980926514,"responseStart":469.19999980926514,"secureConnectionStart":217},{"duration":368.4000005722046,"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":218.0999994277954,"connectEnd":218.0999994277954,"connectStart":218.0999994277954,"domainLookupEnd":218.0999994277954,"domainLookupStart":218.0999994277954,"fetchStart":218.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":218.0999994277954,"responseEnd":586.5,"responseStart":586.5,"secureConnectionStart":218.0999994277954},{"duration":405.79999923706055,"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":218.30000019073486,"connectEnd":218.30000019073486,"connectStart":218.30000019073486,"domainLookupEnd":218.30000019073486,"domainLookupStart":218.30000019073486,"fetchStart":218.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":218.30000019073486,"responseEnd":624.0999994277954,"responseStart":624.0999994277954,"secureConnectionStart":218.30000019073486},{"duration":34.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":552.5,"connectEnd":552.5,"connectStart":552.5,"domainLookupEnd":552.5,"domainLookupStart":552.5,"fetchStart":552.5,"redirectEnd":0,"redirectStart":0,"requestStart":552.5,"responseEnd":587.3000001907349,"responseStart":587.3000001907349,"secureConnectionStart":552.5},{"duration":235.60000038146973,"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","startTime":590.5999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":590.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":826.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":555.8000001907349,"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","startTime":591.5999994277954,"connectEnd":591.5999994277954,"connectStart":591.5999994277954,"domainLookupEnd":591.5999994277954,"domainLookupStart":591.5999994277954,"fetchStart":591.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":591.5999994277954,"responseEnd":1147.3999996185303,"responseStart":1147.3999996185303,"secureConnectionStart":591.5999994277954},{"duration":560.2000007629395,"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","startTime":592.0999994277954,"connectEnd":592.0999994277954,"connectStart":592.0999994277954,"domainLookupEnd":592.0999994277954,"domainLookupStart":592.0999994277954,"fetchStart":592.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":592.0999994277954,"responseEnd":1152.3000001907349,"responseStart":1152.3000001907349,"secureConnectionStart":592.0999994277954}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":19,"responseStart":209,"responseEnd":213,"domLoading":213,"domInteractive":1101,"domContentLoadedEventStart":1101,"domContentLoadedEventEnd":1159,"domComplete":1616,"loadEventStart":1616,"loadEventEnd":1618,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1080.0999994277954},{"name":"bigPipe.sidebar-id.end","time":1080.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":1081.0999994277954},{"name":"bigPipe.activity-panel-pipe-id.end","time":1083.8000001907349},{"name":"activityTabFullyLoaded","time":1171.5}],"measures":[],"correlationId":"a1c8f80a5bf66f","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}