Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
N/A
Environment:
bb-10.5-aria de554b8781
--source include/have_innodb.inc
--source include/have_log_bin.inc
CREATE TABLE t1 (a INT ) ENGINE=Aria;
INSERT INTO t1 VALUES (1),(2);
XA BEGIN 'x' ;
DELETE FROM t1;
XA END 'x' ;
XA PREPARE 'x' ;
# Cleanup
XA COMMIT 'x' ;
DROP TABLE t1;
bb-10.5-aria de554b8781
mariadbd: /data/src/bb-10.5-aria-clean/sql/log.cc:10134: virtual int MYSQL_BIN_LOG::unlog_xa_prepare(THD*, bool): Assertion `ha_info->ht() != binlog_hton' failed.
200518 0:08:27 [ERROR] mysqld got signal 6 ;
#7 0x00007f4bb73aaf12 in __GI___assert_fail (assertion=0x55d44ad2dcd6 "ha_info->ht() != binlog_hton", file=0x55d44ad29df0 "/data/src/bb-10.5-aria-clean/sql/log.cc", line=10134, function=0x55d44ad30500 <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 0x000055d44a206096 in MYSQL_BIN_LOG::unlog_xa_prepare (this=0x55d44b91f120 <mysql_bin_log>, thd=0x7f4b78000b18, all=true) at /data/src/bb-10.5-aria-clean/sql/log.cc:10134
#9 0x000055d44a0c2a1d in ha_prepare (thd=0x7f4b78000b18) at /data/src/bb-10.5-aria-clean/sql/handler.cc:1377
#10 0x000055d449ff87fe in trans_xa_prepare (thd=0x7f4b78000b18) at /data/src/bb-10.5-aria-clean/sql/xa.cc:531
#11 0x000055d449d74602 in mysql_execute_command (thd=0x7f4b78000b18) at /data/src/bb-10.5-aria-clean/sql/sql_parse.cc:5802
#12 0x000055d449d7b1cb in mysql_parse (thd=0x7f4b78000b18, rawbuf=0x7f4b78013a70 "XA PREPARE 'x'", length=14, parser_state=0x7f4bb08e6520, is_com_multi=false, is_next_command=false) at /data/src/bb-10.5-aria-clean/sql/sql_parse.cc:7991
#13 0x000055d449d67577 in dispatch_command (command=COM_QUERY, thd=0x7f4b78000b18, packet=0x7f4b781b1809 "XA PREPARE 'x'", packet_length=14, is_com_multi=false, is_next_command=false) at /data/src/bb-10.5-aria-clean/sql/sql_parse.cc:1875
#14 0x000055d449d65caf in do_command (thd=0x7f4b78000b18) at /data/src/bb-10.5-aria-clean/sql/sql_parse.cc:1356
#15 0x000055d449f09675 in do_handle_one_connection (connect=0x55d44da606d8, put_in_cache=true) at /data/src/bb-10.5-aria-clean/sql/sql_connect.cc:1411
#16 0x000055d449f093dd in handle_one_connection (arg=0x55d44da606d8) at /data/src/bb-10.5-aria-clean/sql/sql_connect.cc:1313
#17 0x000055d44a43f59c in pfs_spawn_thread (arg=0x55d44da00858) at /data/src/bb-10.5-aria-clean/storage/perfschema/pfs.cc:2201
#18 0x00007f4bb93334a4 in start_thread (arg=0x7f4bb08e7700) at pthread_create.c:456
#19 0x00007f4bb7467d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
If the same test case is run without binary logging, instead of the assertion failure it throws a warning upon XA PREPARE :
XA PREPARE 'x';
Warnings:
Warning 1030 Got error 131 "Command not supported by the engine" from storage engine Aria
Neither of it happens on current 10.5 main tree (69077dea).
relates to
MDEV-22430
Assertion `ha_info->ht() != binlog_hton' failed in MYSQL_BIN_LOG::unlog_xa_prepare
Closed
{"report":{"fcp":764.2999999523163,"ttfb":217.29999995231628,"pageVisibility":"visible","entityId":87072,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"366b5c19-3f90-4940-b3e1-94e043baa1d4","navigationType":0,"readyForUser":826,"redirectCount":0,"resourceLoadedEnd":354.5,"resourceLoadedStart":227.69999980926514,"resourceTiming":[{"duration":3.9000000953674316,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":227.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":227.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":231.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":4,"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":228,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":228,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":232,"responseStart":0,"secureConnectionStart":0},{"duration":101.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":228.09999990463257,"connectEnd":228.09999990463257,"connectStart":228.09999990463257,"domainLookupEnd":228.09999990463257,"domainLookupStart":228.09999990463257,"fetchStart":228.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":234.89999985694885,"responseEnd":329.39999985694885,"responseStart":254.09999990463257,"secureConnectionStart":228.09999990463257},{"duration":125.80000019073486,"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":228.69999980926514,"connectEnd":228.69999980926514,"connectStart":228.69999980926514,"domainLookupEnd":228.69999980926514,"domainLookupStart":228.69999980926514,"fetchStart":228.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":236.39999985694885,"responseEnd":354.5,"responseStart":261.89999985694885,"secureConnectionStart":228.69999980926514},{"duration":36.5,"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":228.79999995231628,"connectEnd":228.79999995231628,"connectStart":228.79999995231628,"domainLookupEnd":228.79999995231628,"domainLookupStart":228.79999995231628,"fetchStart":228.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":238.19999980926514,"responseEnd":265.2999999523163,"responseStart":264.59999990463257,"secureConnectionStart":228.79999995231628},{"duration":35.60000014305115,"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":228.89999985694885,"connectEnd":228.89999985694885,"connectStart":228.89999985694885,"domainLookupEnd":228.89999985694885,"domainLookupStart":228.89999985694885,"fetchStart":228.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":238.39999985694885,"responseEnd":264.5,"responseStart":263.7999999523163,"secureConnectionStart":228.89999985694885},{"duration":42.700000047683716,"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":228.89999985694885,"connectEnd":228.89999985694885,"connectStart":228.89999985694885,"domainLookupEnd":228.89999985694885,"domainLookupStart":228.89999985694885,"fetchStart":228.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":240.59999990463257,"responseEnd":271.59999990463257,"responseStart":270.7999999523163,"secureConnectionStart":228.89999985694885},{"duration":9.399999856948853,"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":229,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":238.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":57.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":229.19999980926514,"connectEnd":229.19999980926514,"connectStart":229.19999980926514,"domainLookupEnd":229.19999980926514,"domainLookupStart":229.19999980926514,"fetchStart":229.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":241.39999985694885,"responseEnd":286.2999999523163,"responseStart":282.59999990463257,"secureConnectionStart":229.19999980926514},{"duration":10.599999904632568,"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":229.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":229.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":239.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":53.10000014305115,"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":229.39999985694885,"connectEnd":229.39999985694885,"connectStart":229.39999985694885,"domainLookupEnd":229.39999985694885,"domainLookupStart":229.39999985694885,"fetchStart":229.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":242.5,"responseEnd":282.5,"responseStart":281.59999990463257,"secureConnectionStart":229.39999985694885},{"duration":17.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":241.89999985694885,"connectEnd":246.5,"connectStart":246.5,"domainLookupEnd":246.5,"domainLookupStart":246.5,"fetchStart":241.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":247.09999990463257,"responseEnd":259.39999985694885,"responseStart":257.5,"secureConnectionStart":246.5},{"duration":17.40000009536743,"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":244.09999990463257,"connectEnd":244.09999990463257,"connectStart":244.09999990463257,"domainLookupEnd":244.09999990463257,"domainLookupStart":244.09999990463257,"fetchStart":244.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":248.5,"responseEnd":261.5,"responseStart":259.7999999523163,"secureConnectionStart":244.09999990463257},{"duration":152.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":520.1999998092651,"connectEnd":520.1999998092651,"connectStart":520.1999998092651,"domainLookupEnd":520.1999998092651,"domainLookupStart":520.1999998092651,"fetchStart":520.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":638.2999999523163,"responseEnd":672.5999999046326,"responseStart":671.5999999046326,"secureConnectionStart":520.1999998092651},{"duration":101.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":738.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":738.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":839.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":121.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":753.2999999523163,"connectEnd":753.2999999523163,"connectStart":753.2999999523163,"domainLookupEnd":753.2999999523163,"domainLookupStart":753.2999999523163,"fetchStart":753.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":840.8999998569489,"responseEnd":875,"responseStart":873.1999998092651,"secureConnectionStart":753.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":62,"responseStart":217,"responseEnd":243,"domLoading":220,"domInteractive":882,"domContentLoadedEventStart":882,"domContentLoadedEventEnd":924,"domComplete":1216,"loadEventStart":1216,"loadEventEnd":1216,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":863.1999998092651},{"name":"bigPipe.sidebar-id.end","time":863.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":864.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":864.7999999523163},{"name":"activityTabFullyLoaded","time":936.6999998092651}],"measures":[],"correlationId":"cdb8841eadfd5a","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":85,"dbReadsTimeInMs":21,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Fixed in the original commit that caused the problem