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":963.5,"ttfb":275,"pageVisibility":"visible","entityId":69288,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0e26f58a-b538-4829-b912-ed5b376f7375","navigationType":0,"readyForUser":1042.8999996185303,"redirectCount":0,"resourceLoadedEnd":685.2999997138977,"resourceLoadedStart":283,"resourceTiming":[{"duration":6.299999713897705,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":283,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":289.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":6.800000190734863,"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":283.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":290,"responseStart":0,"secureConnectionStart":0},{"duration":226.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":283.3999996185303,"connectEnd":283.3999996185303,"connectStart":283.3999996185303,"domainLookupEnd":283.3999996185303,"domainLookupStart":283.3999996185303,"fetchStart":283.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":293.8999996185303,"responseEnd":510,"responseStart":310.3999996185303,"secureConnectionStart":283.3999996185303},{"duration":401.59999990463257,"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":283.69999980926514,"connectEnd":283.69999980926514,"connectStart":283.69999980926514,"domainLookupEnd":283.69999980926514,"domainLookupStart":283.69999980926514,"fetchStart":283.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":301.3999996185303,"responseEnd":685.2999997138977,"responseStart":321.5,"secureConnectionStart":283.69999980926514},{"duration":10.900000095367432,"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":283.8999996185303,"connectEnd":283.8999996185303,"connectStart":283.8999996185303,"domainLookupEnd":283.8999996185303,"domainLookupStart":283.8999996185303,"fetchStart":283.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":283.8999996185303,"responseEnd":294.7999997138977,"responseStart":294.7999997138977,"secureConnectionStart":283.8999996185303},{"duration":42.40000009536743,"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":284.09999990463257,"connectEnd":284.09999990463257,"connectStart":284.09999990463257,"domainLookupEnd":284.09999990463257,"domainLookupStart":284.09999990463257,"fetchStart":284.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":301.5,"responseEnd":326.5,"responseStart":323.69999980926514,"secureConnectionStart":284.09999990463257},{"duration":41.90000009536743,"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":284.19999980926514,"connectEnd":284.19999980926514,"connectStart":284.19999980926514,"domainLookupEnd":284.19999980926514,"domainLookupStart":284.19999980926514,"fetchStart":284.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":301.69999980926514,"responseEnd":326.09999990463257,"responseStart":323.09999990463257,"secureConnectionStart":284.19999980926514},{"duration":14.799999713897705,"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":284.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":299.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":48.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":284.59999990463257,"connectEnd":284.59999990463257,"connectStart":284.59999990463257,"domainLookupEnd":284.59999990463257,"domainLookupStart":284.59999990463257,"fetchStart":284.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":303.3999996185303,"responseEnd":333.09999990463257,"responseStart":330,"secureConnectionStart":284.59999990463257},{"duration":15.599999904632568,"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":284.7999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":300.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":47.69999980926514,"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":285,"connectEnd":285,"connectStart":285,"domainLookupEnd":285,"domainLookupStart":285,"fetchStart":285,"redirectEnd":0,"redirectStart":0,"requestStart":304.19999980926514,"responseEnd":332.69999980926514,"responseStart":328.09999990463257,"secureConnectionStart":285},{"duration":388.3999996185303,"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":288.5,"connectEnd":288.5,"connectStart":288.5,"domainLookupEnd":288.5,"domainLookupStart":288.5,"fetchStart":288.5,"redirectEnd":0,"redirectStart":0,"requestStart":355.59999990463257,"responseEnd":676.8999996185303,"responseStart":657.6999998092651,"secureConnectionStart":288.5},{"duration":388.90000009536743,"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":288.59999990463257,"connectEnd":288.59999990463257,"connectStart":288.59999990463257,"domainLookupEnd":288.59999990463257,"domainLookupStart":288.59999990463257,"fetchStart":288.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":381.69999980926514,"responseEnd":677.5,"responseStart":670.3999996185303,"secureConnectionStart":288.59999990463257},{"duration":244.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":677.3999996185303,"connectEnd":677.3999996185303,"connectStart":677.3999996185303,"domainLookupEnd":677.3999996185303,"domainLookupStart":677.3999996185303,"fetchStart":677.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":884.7999997138977,"responseEnd":921.8999996185303,"responseStart":920.0999999046326,"secureConnectionStart":677.3999996185303}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":122,"responseStart":276,"responseEnd":287,"domLoading":279,"domInteractive":1104,"domContentLoadedEventStart":1104,"domContentLoadedEventEnd":1150,"domComplete":2175,"loadEventStart":2175,"loadEventEnd":2175,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1080.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1081.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1081.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1082.5999999046326},{"name":"activityTabFullyLoaded","time":1166.7999997138977}],"measures":[],"correlationId":"4f2324a4b1051e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
In 10.2, the assertion was different.