Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Although MariaDB Galera Cluster does not support XA transactions but it still shouldn't crash server.
1. create a new db and a table
2. input a value
3. XA START 'test';
here where it crashed I received in the log
mariadbd: /home/jenkins/workspace/MariaDBE-Custom-bintar/label/rhel- 7 /wsrep-lib/src/transaction.cpp: 123 : int wsrep::transaction::start_transaction( const wsrep::transaction_id&): Assertion `active() == false ' failed.
201208 13 : 46 : 06 [ERROR] mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
To report this bug, see https: //mariadb.com/kb/en/reporting-bugs
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Server version: 10.4 . 15 - 9 -MariaDB-enterprise-log
key_buffer_size= 134217728
read_buffer_size= 131072
max_used_connections= 6
max_threads= 1002
thread_count= 15
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2336198 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7f2a980008c8
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this , something went
terribly wrong...
stack_bottom = 0x7f2a0c3accc0 thread_stack 0x49000
/MARIADB/MIN10020/bin/mariadb/bin/mariadbd(my_print_stacktrace+ 0x2e )[ 0x55ec5d1cc0be ]
/MARIADB/MIN10020/bin/mariadb/bin/mariadbd(handle_fatal_signal+ 0x30f )[ 0x55ec5cc4ca1f ]
sigaction.c: 0 (__restore_rt)[ 0x7f2d85aaa630 ]
: 0 (__GI_raise)[ 0x7f2d83d27387 ]
: 0 (__GI_abort)[ 0x7f2d83d28a78 ]
: 0 (__assert_fail_base)[ 0x7f2d83d201a6 ]
: 0 (__GI___assert_fail)[ 0x7f2d83d20252 ]
/MARIADB/MIN10020/bin/mariadb/bin/mariadbd(+ 0xeedd5e )[ 0x55ec5d26dd5e ]
/MARIADB/MIN10020/bin/mariadb/bin/mariadbd(_Z11trans_beginP3THDj+ 0x2eb )[ 0x55ec5cb3a56b ]
src/transaction.cpp: 123 (wsrep::transaction::start_transaction(wsrep::transaction_id const &))[ 0x55ec5cbce18e ]
wsrep/client_state.hpp: 290 (wsrep::client_state::start_transaction(wsrep::transaction_id const &))[ 0x55ec5ca3e5c5 ]
sql/xa.cc: 440 (trans_xa_start(THD*))[ 0x55ec5ca44ddd ]
sql/sql_parse.cc: 5970 (mysql_execute_command(THD*))[ 0x55ec5c92ec6c ]
sql/sql_parse.cc: 7926 (mysql_parse(THD*, char *, unsigned int , Parser_state*, bool, bool))[ 0x55ec5ca48757 ]
sql/sql_parse.cc: 1353 (do_command(THD*))[ 0x55ec5ca48c19 ]
sql/sql_connect.cc: 1412 (do_handle_one_connection(CONNECT*))[ 0x55ec5cb2b9fa ]
sql/sql_connect.cc: 1318 (handle_one_connection)[ 0x55ec5cb2badd ]
perfschema/pfs.cc: 1872 (pfs_spawn_thread)[ 0x55ec5d17d81d ]
pthread_create.c: 0 (start_thread)[ 0x7f2d85aa2ea5 ]
/lib64/libc.so. 6 (clone+ 0x6d )[ 0x7f2d83def8dd ]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query ( 0x7f2a9802c050 ): XA START 'test'
Connection ID (thread ID): 205
Status: NOT_KILLED
Optimizer switch : index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on
The manual page at https: //mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /MARIADB/MIN10020/data
Resource Limits:
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 15711 15711 processes
Max open files 1048576 1048576 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 15711 15711 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
Core pattern: core
Muhammad Irfan
made changes -
2020-12-10 17:06
Field
Original Value
New Value
Labels
galera
Julien Fritsch
made changes -
2020-12-14 10:29
Fix Version/s
10.4
[ 23604
]
Jan Lindström (Inactive)
made changes -
2020-12-22 09:44
Fix Version/s
10.4
[ 22408
]
Fix Version/s
10.4
[ 23604
]
Key
MENT-1047
MDEV-24469
Affects Version/s
10.4.15-9
[ 24250
]
Project
MariaDB Enterprise
[ 11500
]
MariaDB Server
[ 10000
]
Jan Lindström (Inactive)
made changes -
2020-12-22 10:07
issue.field.resolutiondate
2020-12-22 10:07:27.0
2020-12-22 10:07:27.484
Jan Lindström (Inactive)
made changes -
2020-12-22 10:07
Component/s
Galera
[ 10124
]
Fix Version/s
10.4.18
[ 25110
]
Fix Version/s
10.5.9
[ 25109
]
Fix Version/s
10.6.0
[ 24431
]
Fix Version/s
10.4
[ 22408
]
Resolution
Fixed
[ 1
]
Status
In Progress
[ 3
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:52
Workflow
MariaDB v3
[ 116775
]
MariaDB v4
[ 158681
]
{"report":{"fcp":1339.3999998569489,"ttfb":368.2000000476837,"pageVisibility":"visible","entityId":94874,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"8f87a693-141d-443a-b0e3-6eebd6faf145","navigationType":0,"readyForUser":1483.0999999046326,"redirectCount":0,"resourceLoadedEnd":1046.7000000476837,"resourceLoadedStart":430.2999999523163,"resourceTiming":[{"duration":98.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":430.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":430.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":528.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":98.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":430.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":430.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":529,"responseStart":0,"secureConnectionStart":0},{"duration":395.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":430.7000000476837,"connectEnd":430.7000000476837,"connectStart":430.7000000476837,"domainLookupEnd":430.7000000476837,"domainLookupStart":430.7000000476837,"fetchStart":430.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":531.0999999046326,"responseEnd":826.2999999523163,"responseStart":565,"secureConnectionStart":430.7000000476837},{"duration":615.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":430.7999999523163,"connectEnd":430.7999999523163,"connectStart":430.7999999523163,"domainLookupEnd":430.7999999523163,"domainLookupStart":430.7999999523163,"fetchStart":430.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":533,"responseEnd":1046.7000000476837,"responseStart":566.7999999523163,"secureConnectionStart":430.7999999523163},{"duration":139.39999985694885,"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":431,"connectEnd":431,"connectStart":431,"domainLookupEnd":431,"domainLookupStart":431,"fetchStart":431,"redirectEnd":0,"redirectStart":0,"requestStart":535.5999999046326,"responseEnd":570.3999998569489,"responseStart":568.5999999046326,"secureConnectionStart":431},{"duration":150.90000009536743,"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":431.2999999523163,"connectEnd":431.2999999523163,"connectStart":431.2999999523163,"domainLookupEnd":431.2999999523163,"domainLookupStart":431.2999999523163,"fetchStart":431.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":536.5999999046326,"responseEnd":582.2000000476837,"responseStart":579.5999999046326,"secureConnectionStart":431.2999999523163},{"duration":151.20000004768372,"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":431.39999985694885,"connectEnd":431.39999985694885,"connectStart":431.39999985694885,"domainLookupEnd":431.39999985694885,"domainLookupStart":431.39999985694885,"fetchStart":431.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":537.0999999046326,"responseEnd":582.5999999046326,"responseStart":580.3999998569489,"secureConnectionStart":431.39999985694885},{"duration":104.29999995231628,"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":431.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":431.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":535.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":152.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":431.7999999523163,"connectEnd":431.7999999523163,"connectStart":431.7999999523163,"domainLookupEnd":431.7999999523163,"domainLookupStart":431.7999999523163,"fetchStart":431.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":538,"responseEnd":584.2000000476837,"responseStart":582.7000000476837,"secureConnectionStart":431.7999999523163},{"duration":102.90000009536743,"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":433.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":433.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":536.5,"responseStart":0,"secureConnectionStart":0},{"duration":151.5,"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":433.7000000476837,"connectEnd":433.7000000476837,"connectStart":433.7000000476837,"domainLookupEnd":433.7000000476837,"domainLookupStart":433.7000000476837,"fetchStart":433.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":544.5,"responseEnd":585.2000000476837,"responseStart":571.5,"secureConnectionStart":433.7000000476837},{"duration":543.1000001430511,"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":445.09999990463257,"connectEnd":445.09999990463257,"connectStart":445.09999990463257,"domainLookupEnd":445.09999990463257,"domainLookupStart":445.09999990463257,"fetchStart":445.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":666.8999998569489,"responseEnd":988.2000000476837,"responseStart":957.0999999046326,"secureConnectionStart":445.09999990463257},{"duration":543.5999999046326,"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":445.2000000476837,"connectEnd":445.2000000476837,"connectStart":445.2000000476837,"domainLookupEnd":445.2000000476837,"domainLookupStart":445.2000000476837,"fetchStart":445.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":769.8999998569489,"responseEnd":988.7999999523163,"responseStart":960.2999999523163,"secureConnectionStart":445.2000000476837},{"duration":356.7999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":974,"connectEnd":974,"connectStart":974,"domainLookupEnd":974,"domainLookupStart":974,"fetchStart":974,"redirectEnd":0,"redirectStart":0,"requestStart":1292.7000000476837,"responseEnd":1330.7999999523163,"responseStart":1330.0999999046326,"secureConnectionStart":974},{"duration":224.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1331.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1331.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1555.5,"responseStart":0,"secureConnectionStart":0},{"duration":291,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1374,"connectEnd":1374,"connectStart":1374,"domainLookupEnd":1374,"domainLookupStart":1374,"fetchStart":1374,"redirectEnd":0,"redirectStart":0,"requestStart":1628.0999999046326,"responseEnd":1665,"responseStart":1663.3999998569489,"secureConnectionStart":1374}],"fetchStart":0,"domainLookupStart":31,"domainLookupEnd":35,"connectStart":35,"connectEnd":54,"secureConnectionStart":43,"requestStart":55,"responseStart":368,"responseEnd":433,"domLoading":373,"domInteractive":1642,"domContentLoadedEventStart":1643,"domContentLoadedEventEnd":1728,"domComplete":2263,"loadEventStart":2263,"loadEventEnd":2263,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1559.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1560.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1560.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":1565},{"name":"activityTabFullyLoaded","time":1760}],"measures":[],"correlationId":"431b09d8972211","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":143,"dbReadsTimeInMs":24,"dbConnsTimeInMs":34,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Currently using XA-transactions could cause whole cluster to either crash or go to inconsistent state. We could refuse all XA-transactions from user, however there are some internal usage of XA that can't be at the moment refused.