--source include/have_innodb.inc
|
--source include/have_log_bin.inc
|
|
CREATE TABLE t (a INT) ENGINE=InnoDB;
|
START TRANSACTION;
|
INSERT INTO t VALUES (1);
|
CREATE SEQUENCE s;
|
|
# Cleanup
|
DROP SEQUENCE s;
|
DROP TABLE t;
|
10.4 c9f87b88
|
mysqld: /data/src/10.4/sql/log_event.cc:8027: Gtid_log_event::Gtid_log_event(THD*, uint64, uint32, bool, uint16, bool, uint64): Assertion `thd_arg->lex->sql_command != SQLCOM_CREATE_SEQUENCE || (flags2 & FL_DDL)' failed.
|
231027 2:15:00 [ERROR] mysqld got signal 6 ;
|
|
#9 0x00007faf36a33e32 in __GI___assert_fail (assertion=0x556e362d9ca0 "thd_arg->lex->sql_command != SQLCOM_CREATE_SEQUENCE || (flags2 & FL_DDL)", file=0x556e362d17e0 "/data/src/10.4/sql/log_event.cc", line=8027, function=0x556e362d9d20 "Gtid_log_event::Gtid_log_event(THD*, uint64, uint32, bool, uint16, bool, uint64)") at ./assert/assert.c:101
|
#10 0x0000556e3492a36b in Gtid_log_event::Gtid_log_event (this=0x7faf21ccb4c0, thd_arg=0x62b0000af208, seq_no_arg=2, domain_id_arg=0, standalone=false, flags_arg=8, is_transactional=true, commit_id_arg=0) at /data/src/10.4/sql/log_event.cc:8027
|
#11 0x0000556e348d20d6 in MYSQL_BIN_LOG::write_gtid_event (this=0x556e377f1960 <mysql_bin_log>, thd=0x62b0000af208, standalone=false, is_transactional=true, commit_id=0) at /data/src/10.4/sql/log.cc:6100
|
#12 0x0000556e348dfe7d in MYSQL_BIN_LOG::write_transaction_or_stmt (this=0x556e377f1960 <mysql_bin_log>, entry=0x7faf21ccbb10, commit_id=0) at /data/src/10.4/sql/log.cc:8340
|
#13 0x0000556e348ddc39 in MYSQL_BIN_LOG::trx_group_commit_leader (this=0x556e377f1960 <mysql_bin_log>, leader=0x7faf21ccbb10) at /data/src/10.4/sql/log.cc:8093
|
#14 0x0000556e348dc7e9 in MYSQL_BIN_LOG::write_transaction_to_binlog_events (this=0x556e377f1960 <mysql_bin_log>, entry=0x7faf21ccbb10) at /data/src/10.4/sql/log.cc:7887
|
#15 0x0000556e348da52c in MYSQL_BIN_LOG::write_transaction_to_binlog (this=0x556e377f1960 <mysql_bin_log>, thd=0x62b0000af208, cache_mngr=0x61b00006ac88, end_ev=0x7faf21ccbda0, all=true, using_stmt_cache=true, using_trx_cache=true) at /data/src/10.4/sql/log.cc:7482
|
#16 0x0000556e348b7536 in binlog_flush_cache (thd=0x62b0000af208, cache_mngr=0x61b00006ac88, end_ev=0x7faf21ccbda0, all=true, using_stmt=true, using_trx=true) at /data/src/10.4/sql/log.cc:1762
|
#17 0x0000556e348b8195 in binlog_commit_flush_xid_caches (thd=0x62b0000af208, cache_mngr=0x61b00006ac88, all=true, xid=26) at /data/src/10.4/sql/log.cc:1870
|
#18 0x0000556e348ea116 in MYSQL_BIN_LOG::log_and_order (this=0x556e377f1960 <mysql_bin_log>, thd=0x62b0000af208, xid=26, all=true, need_prepare_ordered=false, need_commit_ordered=true) at /data/src/10.4/sql/log.cc:9854
|
#19 0x0000556e345dbe68 in ha_commit_trans (thd=0x62b0000af208, all=true) at /data/src/10.4/sql/handler.cc:1680
|
#20 0x0000556e3425cf49 in trans_commit_implicit (thd=0x62b0000af208) at /data/src/10.4/sql/transaction.cc:302
|
#21 0x0000556e33e2f753 in mysql_execute_command (thd=0x62b0000af208) at /data/src/10.4/sql/sql_parse.cc:3786
|
#22 0x0000556e33e4c783 in mysql_parse (thd=0x62b0000af208, rawbuf=0x62b0000b6228 "CREATE SEQUENCE s", length=17, parser_state=0x7faf21cce860, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8013
|
#23 0x0000556e33e229ae in dispatch_command (command=COM_QUERY, thd=0x62b0000af208, packet=0x62900029e209 "CREATE SEQUENCE s", packet_length=17, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1857
|
#24 0x0000556e33e1f51d in do_command (thd=0x62b0000af208) at /data/src/10.4/sql/sql_parse.cc:1378
|
#25 0x0000556e34220726 in do_handle_one_connection (connect=0x608000000ba8) at /data/src/10.4/sql/sql_connect.cc:1420
|
#26 0x0000556e3422003d in handle_one_connection (arg=0x608000000ba8) at /data/src/10.4/sql/sql_connect.cc:1324
|
#27 0x0000556e34e9295e in pfs_spawn_thread (arg=0x615000006488) at /data/src/10.4/storage/perfschema/pfs.cc:1869
|
#28 0x00007faf36a88044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
#29 0x00007faf36b0861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
|
The failure started happening after this commit in 10.4:
commit 1fe4a71b67020a4fe3c1327df62668c11a0acb85
|
Author: Andrei
|
Date: Mon Oct 23 12:53:12 2023 +0300
|
|
MDEV-31792 Assertion fails in MDL_context::acquire_lock upon parallel replication of CREATE SEQUENCE
|
|
The assert's reason was in missed FL_DDL flagging of CREATE-or-REPLACE
|
{"report":{"fcp":820.3999998569489,"ttfb":203.29999995231628,"pageVisibility":"visible","entityId":126004,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"74ab6be8-a156-46a8-bf23-800f9445a299","navigationType":0,"readyForUser":900.0999999046326,"redirectCount":0,"resourceLoadedEnd":938.5999999046326,"resourceLoadedStart":209,"resourceTiming":[{"duration":150.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":359.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":150.20000004768372,"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":209.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":359.5,"responseStart":0,"secureConnectionStart":0},{"duration":158.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":209.29999995231628,"connectEnd":209.29999995231628,"connectStart":209.29999995231628,"domainLookupEnd":209.29999995231628,"domainLookupStart":209.29999995231628,"fetchStart":209.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":209.29999995231628,"responseEnd":368.2000000476837,"responseStart":368.2000000476837,"secureConnectionStart":209.29999995231628},{"duration":232.59999990463257,"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":209.5,"connectEnd":209.5,"connectStart":209.5,"domainLookupEnd":209.5,"domainLookupStart":209.5,"fetchStart":209.5,"redirectEnd":0,"redirectStart":0,"requestStart":209.5,"responseEnd":442.09999990463257,"responseStart":442.09999990463257,"secureConnectionStart":209.5},{"duration":236.40000009536743,"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":209.59999990463257,"connectEnd":209.59999990463257,"connectStart":209.59999990463257,"domainLookupEnd":209.59999990463257,"domainLookupStart":209.59999990463257,"fetchStart":209.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":209.59999990463257,"responseEnd":446,"responseStart":446,"secureConnectionStart":209.59999990463257},{"duration":237.19999980926514,"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":209.70000004768372,"connectEnd":209.70000004768372,"connectStart":209.70000004768372,"domainLookupEnd":209.70000004768372,"domainLookupStart":209.70000004768372,"fetchStart":209.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":209.70000004768372,"responseEnd":446.89999985694885,"responseStart":446.89999985694885,"secureConnectionStart":209.70000004768372},{"duration":237.89999985694885,"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":209.70000004768372,"connectEnd":209.70000004768372,"connectStart":209.70000004768372,"domainLookupEnd":209.70000004768372,"domainLookupStart":209.70000004768372,"fetchStart":209.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":209.70000004768372,"responseEnd":447.59999990463257,"responseStart":447.59999990463257,"secureConnectionStart":209.70000004768372},{"duration":238.40000009536743,"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":209.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":448.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":238.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":209.89999985694885,"connectEnd":209.89999985694885,"connectStart":209.89999985694885,"domainLookupEnd":209.89999985694885,"domainLookupStart":209.89999985694885,"fetchStart":209.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":209.89999985694885,"responseEnd":448.2999999523163,"responseStart":448.2999999523163,"secureConnectionStart":209.89999985694885},{"duration":239,"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":210,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":449,"responseStart":0,"secureConnectionStart":0},{"duration":238.79999995231628,"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":210.29999995231628,"connectEnd":210.29999995231628,"connectStart":210.29999995231628,"domainLookupEnd":210.29999995231628,"domainLookupStart":210.29999995231628,"fetchStart":210.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":210.29999995231628,"responseEnd":449.09999990463257,"responseStart":449.09999990463257,"secureConnectionStart":210.29999995231628},{"duration":414,"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":210.89999985694885,"connectEnd":210.89999985694885,"connectStart":210.89999985694885,"domainLookupEnd":210.89999985694885,"domainLookupStart":210.89999985694885,"fetchStart":210.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":210.89999985694885,"responseEnd":624.8999998569489,"responseStart":624.8999998569489,"secureConnectionStart":210.89999985694885},{"duration":597.6000001430511,"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":210.89999985694885,"connectEnd":210.89999985694885,"connectStart":210.89999985694885,"domainLookupEnd":210.89999985694885,"domainLookupStart":210.89999985694885,"fetchStart":210.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":210.89999985694885,"responseEnd":808.5,"responseStart":808.5,"secureConnectionStart":210.89999985694885},{"duration":135.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":576.5999999046326,"connectEnd":576.5999999046326,"connectStart":576.5999999046326,"domainLookupEnd":576.5999999046326,"domainLookupStart":576.5999999046326,"fetchStart":576.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":576.5999999046326,"responseEnd":712,"responseStart":712,"secureConnectionStart":576.5999999046326},{"duration":141.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":793.3999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":793.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":934.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":137.89999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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":797,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":797,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":934.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":137.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":797.7999999523163,"connectEnd":797.7999999523163,"connectStart":797.7999999523163,"domainLookupEnd":797.7999999523163,"domainLookupStart":797.7999999523163,"fetchStart":797.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":797.7999999523163,"responseEnd":935,"responseStart":935,"secureConnectionStart":797.7999999523163},{"duration":140.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/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":798.0999999046326,"connectEnd":798.0999999046326,"connectStart":798.0999999046326,"domainLookupEnd":798.0999999046326,"domainLookupStart":798.0999999046326,"fetchStart":798.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":798.0999999046326,"responseEnd":938.5999999046326,"responseStart":938.5999999046326,"secureConnectionStart":798.0999999046326}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":76,"responseStart":204,"responseEnd":207,"domLoading":207,"domInteractive":972,"domContentLoadedEventStart":972,"domContentLoadedEventEnd":1006,"domComplete":1364,"loadEventStart":1364,"loadEventEnd":1365,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":936.7999999523163},{"name":"bigPipe.sidebar-id.end","time":937.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":937.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":938.3999998569489},{"name":"activityTabFullyLoaded","time":1018.8999998569489}],"measures":[],"correlationId":"16205eb95ccf97","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":69,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thanks elenst for finding it so quick!