The assertion in trx_purge_add_update_undo_to_history() that was relaxed in MDEV-14905 is still too strict in the innodb_fast_shutdown=0 case:
./mtr --mysqld=--innodb-fast-shutdown=0 innodb.recovery_shutdown
|
This can randomly crash on shutdown upon completion of the rollback of a resurrected transaction:
#5 0x00007f3575bd62f1 in __GI_abort () at abort.c:79
|
#6 0x000055faf93394a7 in trx_purge_add_update_undo_to_history (trx=0x55fafb129e78, undo_page=0x7f3574a00000 "\346\353\305[", mtr=0x7f356c3bb8a0) at /mariadb/10.1/storage/xtradb/trx/trx0purge.cc:257
|
#7 0x000055faf935e637 in trx_undo_update_cleanup (trx=0x55fafb129e78, undo_page=0x7f3574a00000 "\346\353\305[", mtr=0x7f356c3bb8a0) at /mariadb/10.1/storage/xtradb/trx/trx0undo.cc:1938
|
#8 0x000055faf93548bb in trx_write_serialisation_history (trx=0x55fafb129e78, mtr=0x7f356c3bb8a0) at /mariadb/10.1/storage/xtradb/trx/trx0trx.cc:1217
|
#9 0x000055faf93559f2 in trx_commit_low (trx=0x55fafb129e78, mtr=0x7f356c3bb8a0) at /mariadb/10.1/storage/xtradb/trx/trx0trx.cc:1620
|
#10 0x000055faf9355ab7 in trx_commit (trx=0x55fafb129e78) at /mariadb/10.1/storage/xtradb/trx/trx0trx.cc:1667
|
#11 0x000055faf934908d in trx_rollback_finish (trx=0x55fafb129e78) at /mariadb/10.1/storage/xtradb/trx/trx0roll.cc:1369
|
#12 0x000055faf9347855 in trx_rollback_active (trx=0x55fafb129e78) at /mariadb/10.1/storage/xtradb/trx/trx0roll.cc:603
|
#13 0x000055faf9347c08 in trx_rollback_resurrected (trx=0x55fafb129e78, all=0x7f356c3bbe38) at /mariadb/10.1/storage/xtradb/trx/trx0roll.cc:711
|
#14 0x000055faf934822f in trx_rollback_or_clean_recovered (all=1) at /mariadb/10.1/storage/xtradb/trx/trx0roll.cc:833
|
#15 0x000055faf93482f7 in trx_rollback_or_clean_all_recovered (arg=0x0) at /mariadb/10.1/storage/xtradb/trx/trx0roll.cc:873
|
During slow shutdown, we can allow any rollback, and thus the condition && srv_fast_shutdown must be removed.
- relates to
-
MDEV-14905
Assertion `srv_undo_sources || <....> && srv_fast_shutdown)' failed in trx_purge_add_undo_to_history upon shutdown
-
-
Closed
{"report":{"fcp":1030.5,"ttfb":452.89999985694885,"pageVisibility":"visible","entityId":69288,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"b68a0e07-4e7f-4c21-9b18-8b1d3d1a74d2","navigationType":0,"readyForUser":1111.3999998569489,"redirectCount":0,"resourceLoadedEnd":1181.5999999046326,"resourceLoadedStart":458.19999980926514,"resourceTiming":[{"duration":32.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":458.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":458.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":491,"responseStart":0,"secureConnectionStart":0},{"duration":33.40000009536743,"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":458.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":458.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":491.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":86.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":458.59999990463257,"connectEnd":458.59999990463257,"connectStart":458.59999990463257,"domainLookupEnd":458.59999990463257,"domainLookupStart":458.59999990463257,"fetchStart":458.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":458.59999990463257,"responseEnd":545.3999998569489,"responseStart":545.3999998569489,"secureConnectionStart":458.59999990463257},{"duration":156.89999985694885,"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":458.7999999523163,"connectEnd":458.7999999523163,"connectStart":458.7999999523163,"domainLookupEnd":458.7999999523163,"domainLookupStart":458.7999999523163,"fetchStart":458.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":458.7999999523163,"responseEnd":615.6999998092651,"responseStart":615.6999998092651,"secureConnectionStart":458.7999999523163},{"duration":160.29999995231628,"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":459,"connectEnd":459,"connectStart":459,"domainLookupEnd":459,"domainLookupStart":459,"fetchStart":459,"redirectEnd":0,"redirectStart":0,"requestStart":459,"responseEnd":619.2999999523163,"responseStart":619.2999999523163,"secureConnectionStart":459},{"duration":160.5,"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":459.19999980926514,"connectEnd":459.19999980926514,"connectStart":459.19999980926514,"domainLookupEnd":459.19999980926514,"domainLookupStart":459.19999980926514,"fetchStart":459.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":459.19999980926514,"responseEnd":619.6999998092651,"responseStart":619.6999998092651,"secureConnectionStart":459.19999980926514},{"duration":160.89999985694885,"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":459.2999999523163,"connectEnd":459.2999999523163,"connectStart":459.2999999523163,"domainLookupEnd":459.2999999523163,"domainLookupStart":459.2999999523163,"fetchStart":459.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":459.2999999523163,"responseEnd":620.1999998092651,"responseStart":620.1999998092651,"secureConnectionStart":459.2999999523163},{"duration":228.09999990463257,"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":459.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":459.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":687.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":160.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":459.69999980926514,"connectEnd":459.69999980926514,"connectStart":459.69999980926514,"domainLookupEnd":459.69999980926514,"domainLookupStart":459.69999980926514,"fetchStart":459.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":459.69999980926514,"responseEnd":620.5,"responseStart":620.5,"secureConnectionStart":459.69999980926514},{"duration":227.89999985694885,"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":459.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":459.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":687.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":161.20000004768372,"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":459.89999985694885,"connectEnd":459.89999985694885,"connectStart":459.89999985694885,"domainLookupEnd":459.89999985694885,"domainLookupStart":459.89999985694885,"fetchStart":459.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":459.89999985694885,"responseEnd":621.0999999046326,"responseStart":621.0999999046326,"secureConnectionStart":459.89999985694885},{"duration":546.7000000476837,"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":460.7999999523163,"connectEnd":460.7999999523163,"connectStart":460.7999999523163,"domainLookupEnd":460.7999999523163,"domainLookupStart":460.7999999523163,"fetchStart":460.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":460.7999999523163,"responseEnd":1007.5,"responseStart":1007.5,"secureConnectionStart":460.7999999523163},{"duration":720.7999999523163,"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":460.7999999523163,"connectEnd":460.7999999523163,"connectStart":460.7999999523163,"domainLookupEnd":460.7999999523163,"domainLookupStart":460.7999999523163,"fetchStart":460.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":460.7999999523163,"responseEnd":1181.5999999046326,"responseStart":1181.5999999046326,"secureConnectionStart":460.7999999523163},{"duration":307.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":701,"connectEnd":701,"connectStart":701,"domainLookupEnd":701,"domainLookupStart":701,"fetchStart":701,"redirectEnd":0,"redirectStart":0,"requestStart":701,"responseEnd":1008.0999999046326,"responseStart":1008.0999999046326,"secureConnectionStart":701}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":301,"responseStart":453,"responseEnd":454,"domLoading":456,"domInteractive":1196,"domContentLoadedEventStart":1196,"domContentLoadedEventEnd":1234,"domComplete":1731,"loadEventStart":1731,"loadEventEnd":1732,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1183.5},{"name":"bigPipe.sidebar-id.end","time":1184.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1184.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1186.7999999523163},{"name":"activityTabFullyLoaded","time":1242.6999998092651}],"measures":[],"correlationId":"2f7903b7834a84","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}