Hi, Despite have add Primary Key to all tables, we still encounter the `Assertion `mode_ == m_local || transaction_.is_streaming()' failed.` Galera failure.
We operate 3 Mariadb Server 10.4.20 nodes (galera-4-26.4.6-1.el8.x86_64). Our aplications reach cluster using maxscale 2.2.9 configured with a read write splite router.
It seems to be related to a specfic request, ans some times both slaves fails and produce a core:
mysqld:
|
/home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.4.20/wsrep-lib/include/wsrep/client_state.hpp:668: int wsrep::client_state::bf_abort(wsrep::seqno): Assertion `mode_ == m_local || transaction_.is_streaming()' failed.
|
210802 11:55:00 [ERROR] mysqld got signal 6 ;
|
Please found in attachment:
- the Master general query log rd-devops-sql2.log
- A Slave core
- A Slave mysql error log
- relates to
-
MDEV-25551
Assertion `mode_ == m_local || transaction_.is_streaming()` failed in BF abort
-
-
Closed
{"report":{"fcp":1286.5,"ttfb":288.59999990463257,"pageVisibility":"visible","entityId":101725,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"24a87a20-5fb3-4bfd-8715-416d795c3ce1","navigationType":0,"readyForUser":1397.6999998092651,"redirectCount":0,"resourceLoadedEnd":1991.8000001907349,"resourceLoadedStart":298.59999990463257,"resourceTiming":[{"duration":448.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":298.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":746.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":448.2999997138977,"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":298.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":747.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":456.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":299.09999990463257,"connectEnd":299.09999990463257,"connectStart":299.09999990463257,"domainLookupEnd":299.09999990463257,"domainLookupStart":299.09999990463257,"fetchStart":299.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":299.09999990463257,"responseEnd":755.6999998092651,"responseStart":755.6999998092651,"secureConnectionStart":299.09999990463257},{"duration":507.6000003814697,"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":299.19999980926514,"connectEnd":299.19999980926514,"connectStart":299.19999980926514,"domainLookupEnd":299.19999980926514,"domainLookupStart":299.19999980926514,"fetchStart":299.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":299.19999980926514,"responseEnd":806.8000001907349,"responseStart":806.8000001907349,"secureConnectionStart":299.19999980926514},{"duration":511.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":299.5,"connectEnd":299.5,"connectStart":299.5,"domainLookupEnd":299.5,"domainLookupStart":299.5,"fetchStart":299.5,"redirectEnd":0,"redirectStart":0,"requestStart":299.5,"responseEnd":811.3000001907349,"responseStart":811.3000001907349,"secureConnectionStart":299.5},{"duration":512.1000003814697,"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":299.69999980926514,"connectEnd":299.69999980926514,"connectStart":299.69999980926514,"domainLookupEnd":299.69999980926514,"domainLookupStart":299.69999980926514,"fetchStart":299.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":299.69999980926514,"responseEnd":811.8000001907349,"responseStart":811.8000001907349,"secureConnectionStart":299.69999980926514},{"duration":512.2999997138977,"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":299.90000009536743,"connectEnd":299.90000009536743,"connectStart":299.90000009536743,"domainLookupEnd":299.90000009536743,"domainLookupStart":299.90000009536743,"fetchStart":299.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":299.90000009536743,"responseEnd":812.1999998092651,"responseStart":812.1999998092651,"secureConnectionStart":299.90000009536743},{"duration":610.5,"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":300,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":300,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":910.5,"responseStart":0,"secureConnectionStart":0},{"duration":512.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":300.19999980926514,"connectEnd":300.19999980926514,"connectStart":300.19999980926514,"domainLookupEnd":300.19999980926514,"domainLookupStart":300.19999980926514,"fetchStart":300.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":300.19999980926514,"responseEnd":812.6999998092651,"responseStart":812.6999998092651,"secureConnectionStart":300.19999980926514},{"duration":610.5999999046326,"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":300.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":300.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":911,"responseStart":0,"secureConnectionStart":0},{"duration":512.5999999046326,"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":300.5,"connectEnd":300.5,"connectStart":300.5,"domainLookupEnd":300.5,"domainLookupStart":300.5,"fetchStart":300.5,"redirectEnd":0,"redirectStart":0,"requestStart":300.5,"responseEnd":813.0999999046326,"responseStart":813.0999999046326,"secureConnectionStart":300.5},{"duration":1663.0999999046326,"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":306,"connectEnd":306,"connectStart":306,"domainLookupEnd":306,"domainLookupStart":306,"fetchStart":306,"redirectEnd":0,"redirectStart":0,"requestStart":306,"responseEnd":1969.0999999046326,"responseStart":1969.0999999046326,"secureConnectionStart":306},{"duration":1658.5,"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":311,"connectEnd":311,"connectStart":311,"domainLookupEnd":311,"domainLookupStart":311,"fetchStart":311,"redirectEnd":0,"redirectStart":0,"requestStart":311,"responseEnd":1969.5,"responseStart":1969.5,"secureConnectionStart":311},{"duration":229.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":943.5999999046326,"connectEnd":943.5999999046326,"connectStart":943.5999999046326,"domainLookupEnd":943.5999999046326,"domainLookupStart":943.5999999046326,"fetchStart":943.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":943.5999999046326,"responseEnd":1172.6999998092651,"responseStart":1172.6999998092651,"secureConnectionStart":943.5999999046326},{"duration":767.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":1224.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1224.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1991.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":797.9000000953674,"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":1225.6999998092651,"connectEnd":1225.6999998092651,"connectStart":1225.6999998092651,"domainLookupEnd":1225.6999998092651,"domainLookupStart":1225.6999998092651,"fetchStart":1225.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1225.6999998092651,"responseEnd":2023.5999999046326,"responseStart":2023.5999999046326,"secureConnectionStart":1225.6999998092651},{"duration":804.3000001907349,"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":1226,"connectEnd":1226,"connectStart":1226,"domainLookupEnd":1226,"domainLookupStart":1226,"fetchStart":1226,"redirectEnd":0,"redirectStart":0,"requestStart":1226,"responseEnd":2030.3000001907349,"responseStart":2030.3000001907349,"secureConnectionStart":1226}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":115,"responseStart":289,"responseEnd":311,"domLoading":297,"domInteractive":2004,"domContentLoadedEventStart":2004,"domContentLoadedEventEnd":2050,"domComplete":2743,"loadEventStart":2743,"loadEventEnd":2744,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1973.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1973.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1974.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1976.5},{"name":"activityTabFullyLoaded","time":2105.300000190735}],"measures":[],"correlationId":"3a530af5e9d00f","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
mreibert your first stacktrace attached (reibert_mysqld-abort-stacktrace.txt) has one replication applier thread (Thread 73) in the middle of processing of Foreign key constraint's cascade operation (row_ins_foreign_check_on_constraint). This suggest that this crash relates to issue
MDEV-26803, where the reason for the crashes was that cascading executions did not reliably record all rows manipulated through cascade operation in the replication write set. And this has resulted in unsafe parallel applying in replica nodes.The second stacktrace has also ongoing foreign key checking, but in different stages.