Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.5
--source include/have_innodb.inc
--source include/have_log_bin.inc
CREATE TABLE t1 (a INT ) ENGINE=MyISAM;
INSERT INTO t1 VALUES (1),(2);
CREATE TABLE t2 (id INT PRIMARY KEY ) ENGINE=InnoDB;
INSERT INTO t2 VALUES (1),(2);
XA BEGIN 'x' ;
REPLACE INTO t1 SELECT * FROM t1;
REPLACE INTO t2 SELECT * FROM t2;
XA END 'x' ;
XA PREPARE 'x' ;
# Cleanup
XA COMMIT 'x' ;
DROP TABLE t1, t2;
10.5 043828bd
mariadbd: /data/src/10.5/sql/log.cc:10149: virtual int MYSQL_BIN_LOG::unlog_xa_prepare(THD*, bool): Assertion `!binlog || exist_hton_without_prepare' failed.
200530 22:26:14 [ERROR] mysqld got signal 6 ;
#7 0x00007f2f370dff12 in __GI___assert_fail (assertion=0x556040115270 "!binlog || exist_hton_without_prepare", file=0x556040111394 "/data/src/10.5/sql/log.cc", line=10149, function=0x556040117aa0 <MYSQL_BIN_LOG::unlog_xa_prepare(THD*, bool)::__PRETTY_FUNCTION__> "virtual int MYSQL_BIN_LOG::unlog_xa_prepare(THD*, bool)") at assert.c:101
#8 0x000055603f5f2974 in MYSQL_BIN_LOG::unlog_xa_prepare (this=0x556040d00120 <mysql_bin_log>, thd=0x7f2f00000b18, all=true) at /data/src/10.5/sql/log.cc:10149
#9 0x000055603f4af35b in ha_prepare (thd=0x7f2f00000b18) at /data/src/10.5/sql/handler.cc:1361
#10 0x000055603f3e4886 in trans_xa_prepare (thd=0x7f2f00000b18) at /data/src/10.5/sql/xa.cc:531
#11 0x000055603f1603f0 in mysql_execute_command (thd=0x7f2f00000b18) at /data/src/10.5/sql/sql_parse.cc:5802
#12 0x000055603f166fb9 in mysql_parse (thd=0x7f2f00000b18, rawbuf=0x7f2f00013a70 "XA PREPARE 'x'", length=14, parser_state=0x7f2f3061b520, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7991
#13 0x000055603f153365 in dispatch_command (command=COM_QUERY, thd=0x7f2f00000b18, packet=0x7f2f000087c9 "XA PREPARE 'x'", packet_length=14, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1875
#14 0x000055603f151a9d in do_command (thd=0x7f2f00000b18) at /data/src/10.5/sql/sql_parse.cc:1356
#15 0x000055603f2f55fb in do_handle_one_connection (connect=0x556043972d58, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1411
#16 0x000055603f2f5363 in handle_one_connection (arg=0x556043972d58) at /data/src/10.5/sql/sql_connect.cc:1313
#17 0x000055603f82c2de in pfs_spawn_thread (arg=0x556043912ed8) at /data/src/10.5/storage/perfschema/pfs.cc:2201
#18 0x00007f2f390684a4 in start_thread (arg=0x7f2f3061c700) at pthread_create.c:456
#19 0x00007f2f3719cd0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
Not reproducible on 10.4.
No obvious effect on a non-debug build.
relates to
MDEV-22430
Assertion `ha_info->ht() != binlog_hton' failed in MYSQL_BIN_LOG::unlog_xa_prepare
Closed
Andrei Elkin
made changes -
2020-06-04 17:08
Field
Original Value
New Value
Status
Open
[ 1
]
In Progress
[ 3
]
Andrei Elkin
made changes -
2020-06-08 08:52
Assignee
Andrei Elkin
[ elkin
]
Sergei Golubchik
[ serg
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Sergei Golubchik
made changes -
2020-06-16 22:04
Assignee
Sergei Golubchik
[ serg
]
Andrei Elkin
[ elkin
]
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Andrei Elkin
made changes -
2020-07-14 06:29
Status
Stalled
[ 10000
]
In Progress
[ 3
]
Andrei Elkin
made changes -
2020-07-14 06:31
Assignee
Andrei Elkin
[ elkin
]
Sergei Golubchik
[ serg
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Sergei Golubchik
made changes -
2020-10-22 11:46
Assignee
Sergei Golubchik
[ serg
]
Andrei Elkin
[ elkin
]
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Andrei Elkin
made changes -
2021-04-19 19:04
Fix Version/s
10.5.10
[ 25204
]
Fix Version/s
10.5
[ 23123
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:51
Workflow
MariaDB v3
[ 109330
]
MariaDB v4
[ 157881
]
{"report":{"fcp":903.2999999523163,"ttfb":274.2999999523163,"pageVisibility":"visible","entityId":87630,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f2cd145c-670e-4665-b1db-9c1a2f49b967","navigationType":0,"readyForUser":986.1000000238419,"redirectCount":0,"resourceLoadedEnd":936.2999999523163,"resourceLoadedStart":280,"resourceTiming":[{"duration":70.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":280,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":280,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":350.5,"responseStart":0,"secureConnectionStart":0},{"duration":70.90000009536743,"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":280.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":280.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":351.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":132.30000007152557,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":280.39999997615814,"connectEnd":280.39999997615814,"connectStart":280.39999997615814,"domainLookupEnd":280.39999997615814,"domainLookupStart":280.39999997615814,"fetchStart":280.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":280.39999997615814,"responseEnd":412.7000000476837,"responseStart":412.7000000476837,"secureConnectionStart":280.39999997615814},{"duration":185.79999995231628,"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":280.60000002384186,"connectEnd":280.60000002384186,"connectStart":280.60000002384186,"domainLookupEnd":280.60000002384186,"domainLookupStart":280.60000002384186,"fetchStart":280.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":280.60000002384186,"responseEnd":466.39999997615814,"responseStart":466.39999997615814,"secureConnectionStart":280.60000002384186},{"duration":189.30000007152557,"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":280.89999997615814,"connectEnd":280.89999997615814,"connectStart":280.89999997615814,"domainLookupEnd":280.89999997615814,"domainLookupStart":280.89999997615814,"fetchStart":280.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":280.89999997615814,"responseEnd":470.2000000476837,"responseStart":470.2000000476837,"secureConnectionStart":280.89999997615814},{"duration":189.70000004768372,"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":281,"connectEnd":281,"connectStart":281,"domainLookupEnd":281,"domainLookupStart":281,"fetchStart":281,"redirectEnd":0,"redirectStart":0,"requestStart":281,"responseEnd":470.7000000476837,"responseStart":470.7000000476837,"secureConnectionStart":281},{"duration":190,"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":281.2000000476837,"connectEnd":281.2000000476837,"connectStart":281.2000000476837,"domainLookupEnd":281.2000000476837,"domainLookupStart":281.2000000476837,"fetchStart":281.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":281.2000000476837,"responseEnd":471.2000000476837,"responseStart":471.2000000476837,"secureConnectionStart":281.2000000476837},{"duration":272.3000000715256,"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":281.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":553.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":190.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":281.5,"connectEnd":281.5,"connectStart":281.5,"domainLookupEnd":281.5,"domainLookupStart":281.5,"fetchStart":281.5,"redirectEnd":0,"redirectStart":0,"requestStart":281.5,"responseEnd":471.7999999523163,"responseStart":471.7999999523163,"secureConnectionStart":281.5},{"duration":272.10000002384186,"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":281.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":281.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":553.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":190.60000002384186,"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":281.7999999523163,"connectEnd":281.7999999523163,"connectStart":281.7999999523163,"domainLookupEnd":281.7999999523163,"domainLookupStart":281.7999999523163,"fetchStart":281.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":281.7999999523163,"responseEnd":472.39999997615814,"responseStart":472.39999997615814,"secureConnectionStart":281.7999999523163},{"duration":334.5,"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":282.5,"connectEnd":282.5,"connectStart":282.5,"domainLookupEnd":282.5,"domainLookupStart":282.5,"fetchStart":282.5,"redirectEnd":0,"redirectStart":0,"requestStart":282.5,"responseEnd":617,"responseStart":617,"secureConnectionStart":282.5},{"duration":363.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":287,"connectEnd":287,"connectStart":287,"domainLookupEnd":287,"domainLookupStart":287,"fetchStart":287,"redirectEnd":0,"redirectStart":0,"requestStart":287,"responseEnd":650.7000000476837,"responseStart":650.7000000476837,"secureConnectionStart":287},{"duration":66,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":580.2999999523163,"connectEnd":580.2999999523163,"connectStart":580.2999999523163,"domainLookupEnd":580.2999999523163,"domainLookupStart":580.2999999523163,"fetchStart":580.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":580.2999999523163,"responseEnd":646.2999999523163,"responseStart":646.2999999523163,"secureConnectionStart":580.2999999523163},{"duration":38.10000002384186,"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":820.3999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":820.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":858.5,"responseStart":0,"secureConnectionStart":0},{"duration":104.89999997615814,"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":821.3999999761581,"connectEnd":821.3999999761581,"connectStart":821.3999999761581,"domainLookupEnd":821.3999999761581,"domainLookupStart":821.3999999761581,"fetchStart":821.3999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":821.3999999761581,"responseEnd":926.2999999523163,"responseStart":926.2999999523163,"secureConnectionStart":821.3999999761581},{"duration":114.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":821.7999999523163,"connectEnd":821.7999999523163,"connectStart":821.7999999523163,"domainLookupEnd":821.7999999523163,"domainLookupStart":821.7999999523163,"fetchStart":821.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":821.7999999523163,"responseEnd":936.2999999523163,"responseStart":936.2999999523163,"secureConnectionStart":821.7999999523163},{"duration":127.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":895.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":895.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1023.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":137.69999992847443,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":916.1000000238419,"connectEnd":916.1000000238419,"connectStart":916.1000000238419,"domainLookupEnd":916.1000000238419,"domainLookupStart":916.1000000238419,"fetchStart":916.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":916.1000000238419,"responseEnd":1053.7999999523163,"responseStart":1053.7999999523163,"secureConnectionStart":916.1000000238419}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":74,"responseStart":275,"responseEnd":281,"domLoading":278,"domInteractive":1064,"domContentLoadedEventStart":1064,"domContentLoadedEventEnd":1110,"domComplete":1181,"loadEventStart":1181,"loadEventEnd":1181,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1025.5},{"name":"bigPipe.sidebar-id.end","time":1026.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1026.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1029.3999999761581},{"name":"activityTabFullyLoaded","time":1129.5}],"measures":[],"correlationId":"705ba9934d944a","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":135,"dbReadsTimeInMs":22,"dbConnsTimeInMs":32,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}