Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.6
Testcase
Start 3 node cluster
connection node1;
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 BLOB) ENGINE=InnoDB;
SET SESSION wsrep_on=OFF;
INSERT INTO t1 VALUES (1, 'X');
SET SESSION wsrep_on=ON;
connection node_3;
SET AUTOCOMMIT=OFF;
SET SESSION wsrep_trx_fragment_size = 131070;
START TRANSACTION;
INSERT INTO t1 VALUES (1, REPEAT('A', 65535));
INSERT INTO t1 VALUES (2, REPEAT('A', 65535));
INSERT INTO t1 VALUES (3, REPEAT('A', 65535));
INSERT INTO t1 VALUES (4, REPEAT('A', 65535));
INSERT INTO t1 VALUES (5, REPEAT('A', 65535));
COMMIT;
connection node1;
DELETE FROM t1 WHERE f1 = 2; # Sometimes we need to run DELETE statement multiple times to get the crash.
10.6.0-0 3402184ce3d235788455c30a2d2dae3c32d15af9 (Debug)
mysqld: /test/10.6_dbg/sql/wsrep_high_priority_service.cc:542: virtual int Wsrep_applier_service::apply_write_set(const wsrep::ws_meta&, const wsrep::const_buffer&, wsrep::mutable_buffer&): Assertion `thd->wsrep_trx().active()' failed.
10.6.0-0 3402184ce3d235788455c30a2d2dae3c32d15af9 (Debug)
Core was generated by `/test/GAL_EMD150321-mariadb-10.6.0-0-linux-x86_64-dbg/bin/mysqld --defaults-fil'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
#1 0x000055b79cbdd2cd in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
#2 0x000055b79c37e124 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:331
#3 <signal handler called>
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5 0x000014c205ac9859 in __GI_abort () at abort.c:79
#6 0x000014c205ac9729 in __assert_fail_base (fmt=0x14c205c5f588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=0x55b79cf7d7f0 "thd->wsrep_trx().active()", file=0x55b79cf7ccf8 "/test/10.6_dbg/sql/wsrep_high_priority_service.cc", line=536,
function=<optimized out>) at assert.c:92
#7 0x000014c205adaf36 in __GI___assert_fail (assertion=assertion@entry=0x55b79cf7d7f0 "thd->wsrep_trx().active()",
file=file@entry=0x55b79cf7ccf8 "/test/10.6_dbg/sql/wsrep_high_priority_service.cc", line=line@entry=536,
function=function@entry=0x55b79cf7cf30 "virtual int Wsrep_applier_service::apply_write_set(const wsrep::ws_meta&, const wsrep::const_buffer&, wsrep::mutable_buffer&)") at assert.c:101
#8 0x000055b79c72accd in Wsrep_applier_service::apply_write_set (this=0x14c1e003ad10, ws_meta=..., data=..., err=...)
at /test/10.6_dbg/wsrep-lib/include/wsrep/transaction_id.hpp:52
#9 0x000055b79ccfbec4 in apply_fragment (server_state=..., high_priority_service=...,
streaming_applier=streaming_applier@entry=0x14c1e003ad10, ws_handle=..., ws_meta=..., data=...)
at /test/10.6_dbg/wsrep-lib/src/server_state.cpp:98
#10 0x000055b79cd03eee in apply_write_set (server_state=..., high_priority_service=..., ws_handle=..., ws_meta=..., data=...)
at /test/10.6_dbg/wsrep-lib/src/server_state.cpp:384
#11 0x000055b79cd04c37 in wsrep::server_state::on_apply (this=<optimized out>, high_priority_service=..., ws_handle=..., ws_meta=...,
data=...) at /test/10.6_dbg/wsrep-lib/src/server_state.cpp:1136
#12 0x000055b79cd1231a in wsrep::high_priority_service::apply (data=..., ws_meta=..., ws_handle=..., this=0x14c1f4650d10)
at /test/10.6_dbg/wsrep-lib/include/wsrep/high_priority_service.hpp:47
#13 (anonymous namespace)::apply_cb (ctx=ctx@entry=0x14c1f4650d10, wsh=wsh@entry=0x14c1f464fdb0, flags=flags@entry=0,
buf=buf@entry=0x14c1f464fdc0, meta=meta@entry=0x14c1f4650070, exit_loop=exit_loop@entry=0x14c1f465002f)
at /test/10.6_dbg/wsrep-lib/src/wsrep_provider_v26.cpp:502
#14 0x000014c205344b05 in galera::TrxHandleSlave::apply (this=this@entry=0x14c198037e60, recv_ctx=recv_ctx@entry=0x14c1f4650d10,
apply_cb=0x55b79cd12197 <(anonymous namespace)::apply_cb(void*, wsrep_ws_handle_t const*, uint32_t, wsrep_buf_t const*, wsrep_trx_meta_t const*, wsrep_bool_t*)>, meta=..., exit_loop=exit_loop@entry=@0x14c1f465002f: false) at /test/10.6_galera_dbg/galera/src/trx_handle.cpp:391
#15 0x000014c2053547e2 in galera::ReplicatorSMM::apply_trx (this=0x55b79e407380, recv_ctx=0x14c1f4650d10, ts=...)
at /test/10.6_galera_dbg/galera/src/replicator_smm.cpp:504
#16 0x000014c20535c6b8 in galera::ReplicatorSMM::process_trx (this=0x55b79e407380, recv_ctx=0x14c1f4650d10, ts_ptr=...)
at /test/10.6_galera_dbg/galera/src/replicator_smm.cpp:2127
#17 0x000014c20538cfc3 in galera::GcsActionSource::process_writeset (this=0x55b79e436a50, recv_ctx=0x14c1f4650d10, act=...,
exit_loop=@0x14c1f465091f: false) at /test/10.6_galera_dbg/galera/src/gcs_action_source.cpp:62
#18 0x000014c20538d99b in galera::GcsActionSource::dispatch (this=<optimized out>, recv_ctx=<optimized out>, act=...,
exit_loop=<optimized out>) at /test/10.6_galera_dbg/galera/src/gcs_action_source.cpp:110
#19 0x000014c20538dba2 in galera::GcsActionSource::process (this=0x55b79e436a50, recv_ctx=0x14c1f4650d10, exit_loop=@0x14c1f465091f: false)
at /test/10.6_galera_dbg/galera/src/gcs_action_source.cpp:183
#20 0x000014c205359760 in galera::ReplicatorSMM::async_recv (this=0x55b79e407380, recv_ctx=0x14c1f4650d10)
at /test/10.6_galera_dbg/galera/src/replicator_smm.cpp:390
#21 0x000014c20532ffb1 in galera_recv (gh=<optimized out>, recv_ctx=<optimized out>)
at /test/10.6_galera_dbg/galera/src/wsrep_provider.cpp:236
#22 0x000055b79cd1277c in wsrep::wsrep_provider_v26::run_applier (this=<optimized out>, applier_ctx=<optimized out>)
at /test/10.6_dbg/wsrep-lib/src/wsrep_provider_v26.cpp:743
#23 0x000055b79c7486e9 in wsrep_replication_process (thd=0x14c198000ff8, arg=<optimized out>) at /test/10.6_dbg/sql/wsrep_server_state.h:51
#24 0x000055b79c736d22 in start_wsrep_THD (arg=arg@entry=0x55b79e455f60) at /test/10.6_dbg/sql/wsrep_mysqld.h:579
#25 0x000055b79c6c2c01 in pfs_spawn_thread (arg=0x55b79ea17c88) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
#26 0x000014c205fd7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
--Type <RET> for more, q to quit, c to continue without paging--
#27 0x000014c205bc6293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
relates to
MDEV-30862
Assertion `mode_ == m_high_priority' failed in void wsrep::client_state::after_applying()
Closed
{"report":{"fcp":1003.5,"ttfb":287.5,"pageVisibility":"visible","entityId":98948,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9208de33-afef-4ca5-a21f-d583cf2a4237","navigationType":0,"readyForUser":1099.2999997138977,"redirectCount":0,"resourceLoadedEnd":1154,"resourceLoadedStart":293.7999997138977,"resourceTiming":[{"duration":188,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":293.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":293.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":481.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":187.90000009536743,"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":294.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":294.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":482,"responseStart":0,"secureConnectionStart":0},{"duration":197,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":294.2999997138977,"connectEnd":294.2999997138977,"connectStart":294.2999997138977,"domainLookupEnd":294.2999997138977,"domainLookupStart":294.2999997138977,"fetchStart":294.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":294.2999997138977,"responseEnd":491.2999997138977,"responseStart":491.2999997138977,"secureConnectionStart":294.2999997138977},{"duration":274.2999997138977,"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":294.5,"connectEnd":294.5,"connectStart":294.5,"domainLookupEnd":294.5,"domainLookupStart":294.5,"fetchStart":294.5,"redirectEnd":0,"redirectStart":0,"requestStart":294.5,"responseEnd":568.7999997138977,"responseStart":568.7999997138977,"secureConnectionStart":294.5},{"duration":278.80000019073486,"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":294.69999980926514,"connectEnd":294.69999980926514,"connectStart":294.69999980926514,"domainLookupEnd":294.69999980926514,"domainLookupStart":294.69999980926514,"fetchStart":294.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":294.69999980926514,"responseEnd":573.5,"responseStart":573.5,"secureConnectionStart":294.69999980926514},{"duration":279.7000002861023,"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":294.7999997138977,"connectEnd":294.7999997138977,"connectStart":294.7999997138977,"domainLookupEnd":294.7999997138977,"domainLookupStart":294.7999997138977,"fetchStart":294.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":294.7999997138977,"responseEnd":574.5,"responseStart":574.5,"secureConnectionStart":294.7999997138977},{"duration":282.19999980926514,"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":295,"connectEnd":295,"connectStart":295,"domainLookupEnd":295,"domainLookupStart":295,"fetchStart":295,"redirectEnd":0,"redirectStart":0,"requestStart":295,"responseEnd":577.1999998092651,"responseStart":577.1999998092651,"secureConnectionStart":295},{"duration":341.40000009536743,"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":295.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":295.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":636.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":282.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":295.3999996185303,"connectEnd":295.3999996185303,"connectStart":295.3999996185303,"domainLookupEnd":295.3999996185303,"domainLookupStart":295.3999996185303,"fetchStart":295.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":295.3999996185303,"responseEnd":577.8999996185303,"responseStart":577.8999996185303,"secureConnectionStart":295.3999996185303},{"duration":341.19999980926514,"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":295.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":295.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":636.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":283,"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":295.69999980926514,"connectEnd":295.69999980926514,"connectStart":295.69999980926514,"domainLookupEnd":295.69999980926514,"domainLookupStart":295.69999980926514,"fetchStart":295.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":295.69999980926514,"responseEnd":578.6999998092651,"responseStart":578.5999999046326,"secureConnectionStart":295.69999980926514},{"duration":402.90000009536743,"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":301.09999990463257,"connectEnd":301.09999990463257,"connectStart":301.09999990463257,"domainLookupEnd":301.09999990463257,"domainLookupStart":301.09999990463257,"fetchStart":301.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":301.09999990463257,"responseEnd":704,"responseStart":704,"secureConnectionStart":301.09999990463257},{"duration":700.0999999046326,"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":301.09999990463257,"connectEnd":301.09999990463257,"connectStart":301.09999990463257,"domainLookupEnd":301.09999990463257,"domainLookupStart":301.09999990463257,"fetchStart":301.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":301.09999990463257,"responseEnd":1001.1999998092651,"responseStart":1001.1999998092651,"secureConnectionStart":301.09999990463257},{"duration":181,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":673.1999998092651,"connectEnd":673.1999998092651,"connectStart":673.1999998092651,"domainLookupEnd":673.1999998092651,"domainLookupStart":673.1999998092651,"fetchStart":673.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":673.1999998092651,"responseEnd":854.1999998092651,"responseStart":854.1999998092651,"secureConnectionStart":673.1999998092651},{"duration":199.5,"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&whisper-enabled=true","startTime":950.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":950.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1150.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":198.5,"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&whisper-enabled=true","startTime":951.8999996185303,"connectEnd":951.8999996185303,"connectStart":951.8999996185303,"domainLookupEnd":951.8999996185303,"domainLookupStart":951.8999996185303,"fetchStart":951.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":951.8999996185303,"responseEnd":1150.3999996185303,"responseStart":1150.3999996185303,"secureConnectionStart":951.8999996185303},{"duration":201.7000002861023,"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&whisper-enabled=true","startTime":952.2999997138977,"connectEnd":952.2999997138977,"connectStart":952.2999997138977,"domainLookupEnd":952.2999997138977,"domainLookupStart":952.2999997138977,"fetchStart":952.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":952.2999997138977,"responseEnd":1154,"responseStart":1154,"secureConnectionStart":952.2999997138977},{"duration":319.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":996.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":996.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1316.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":127,"responseStart":288,"responseEnd":296,"domLoading":292,"domInteractive":1166,"domContentLoadedEventStart":1166,"domContentLoadedEventEnd":1262,"domComplete":1577,"loadEventStart":1577,"loadEventEnd":1579,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1151.6999998092651},{"name":"bigPipe.sidebar-id.end","time":1152.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1152.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1155.5999999046326},{"name":"activityTabFullyLoaded","time":1328.0999999046326}],"measures":[],"correlationId":"281c0e36d5277f","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}