Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL)
axel reproduced one more hang related to innodb_undo_log_truncate=ON , similar to MDEV-30180 . Here is a description of a hang that was reproduced with innodb_use_native_aio=0 :
trx_purge_truncate_history() writes the message InnoDB: Truncating and is about to truncate an undo log tablespace.
trx_purge_truncate_history() is busy-looping in a scan of buf_pool.flush_list because one of the pages belonging to the undo tablespace is write-fixed.
During the time trx_purge_truncate_history() releases and re-acquires buf_pool.flush_list_mutex , other threads that are waiting for it cannot grab it, in this version of GNU libc . This is similar to MDEV-30180 , which could only be reproduced in the same particular environment.
buf_dblwr_t::flush_buffered_writes_completed() was waiting for log_sys.mutex in log_write_up_to() , while trying to write the block that trx_purge_truncate_history() is trying to lock.
log_sys.mutex was be held by buf_flush_page_cleaner() , which is waiting for buf_pool.flush_list_mutex .
A possible fix would be that trx_purge_truncate_history() buffer-fixes the block, releases buf_pool.flush_list_mutex , waits for an exclusive latch on the block and finally reacquire buf_pool.flush_list_mutex . In that way, the blocking of other threads is minimized. The buffer-fix will prevent the eviction or relocation of the block in the buffer pool while no mutex is held by trx_purge_truncate_history() .
{"report":{"fcp":1520.7999999523163,"ttfb":408.5,"pageVisibility":"visible","entityId":122260,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2f82a074-18e4-452b-9e9c-fc0aec1fb9eb","navigationType":0,"readyForUser":1613.2000000476837,"redirectCount":0,"resourceLoadedEnd":1258.2000000476837,"resourceLoadedStart":418.2999999523163,"resourceTiming":[{"duration":294,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":418.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":418.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":712.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":294.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":418.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":418.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":713,"responseStart":0,"secureConnectionStart":0},{"duration":616.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":418.7999999523163,"connectEnd":418.7999999523163,"connectStart":418.7999999523163,"domainLookupEnd":418.7999999523163,"domainLookupStart":418.7999999523163,"fetchStart":418.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":716.7000000476837,"responseEnd":1035.7000000476837,"responseStart":734.7000000476837,"secureConnectionStart":418.7999999523163},{"duration":793.2999999523163,"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":419.5,"connectEnd":419.5,"connectStart":419.5,"domainLookupEnd":419.5,"domainLookupStart":419.5,"fetchStart":419.5,"redirectEnd":0,"redirectStart":0,"requestStart":715.8999998569489,"responseEnd":1212.7999999523163,"responseStart":729.2000000476837,"secureConnectionStart":419.5},{"duration":314.7999999523163,"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":419.7000000476837,"connectEnd":419.7000000476837,"connectStart":419.7000000476837,"domainLookupEnd":419.7000000476837,"domainLookupStart":419.7000000476837,"fetchStart":419.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":716.7999999523163,"responseEnd":734.5,"responseStart":733.0999999046326,"secureConnectionStart":419.7000000476837},{"duration":326,"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":419.7999999523163,"connectEnd":419.7999999523163,"connectStart":419.7999999523163,"domainLookupEnd":419.7999999523163,"domainLookupStart":419.7999999523163,"fetchStart":419.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":722.7999999523163,"responseEnd":745.7999999523163,"responseStart":739.5999999046326,"secureConnectionStart":419.7999999523163},{"duration":329,"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":420,"connectEnd":420,"connectStart":420,"domainLookupEnd":420,"domainLookupStart":420,"fetchStart":420,"redirectEnd":0,"redirectStart":0,"requestStart":723.5999999046326,"responseEnd":749,"responseStart":742.3999998569489,"secureConnectionStart":420},{"duration":300.39999985694885,"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":420.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":420.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":720.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":329,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":420.59999990463257,"connectEnd":420.59999990463257,"connectStart":420.59999990463257,"domainLookupEnd":420.59999990463257,"domainLookupStart":420.59999990463257,"fetchStart":420.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":724.2999999523163,"responseEnd":749.5999999046326,"responseStart":743.7999999523163,"secureConnectionStart":420.59999990463257},{"duration":300.69999980926514,"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":420.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":420.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":721.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":342.2000000476837,"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":420.89999985694885,"connectEnd":420.89999985694885,"connectStart":420.89999985694885,"domainLookupEnd":420.89999985694885,"domainLookupStart":420.89999985694885,"fetchStart":420.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":746,"responseEnd":763.0999999046326,"responseStart":759.5999999046326,"secureConnectionStart":420.89999985694885},{"duration":798.5999999046326,"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":423.2000000476837,"connectEnd":423.2000000476837,"connectStart":423.2000000476837,"domainLookupEnd":423.2000000476837,"domainLookupStart":423.2000000476837,"fetchStart":423.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":964.7000000476837,"responseEnd":1221.7999999523163,"responseStart":1217.5,"secureConnectionStart":423.2000000476837},{"duration":834.9000000953674,"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":423.2999999523163,"connectEnd":423.2999999523163,"connectStart":423.2999999523163,"domainLookupEnd":423.2999999523163,"domainLookupStart":423.2999999523163,"fetchStart":423.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1241.7000000476837,"responseEnd":1258.2000000476837,"responseStart":1257.2000000476837,"secureConnectionStart":423.2999999523163},{"duration":243.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1173.2999999523163,"connectEnd":1173.2999999523163,"connectStart":1173.2999999523163,"domainLookupEnd":1173.2999999523163,"domainLookupStart":1173.2999999523163,"fetchStart":1173.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1382.7000000476837,"responseEnd":1416.3999998569489,"responseStart":1415.2999999523163,"secureConnectionStart":1173.2999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":240,"responseStart":408,"responseEnd":418,"domLoading":412,"domInteractive":1696,"domContentLoadedEventStart":1696,"domContentLoadedEventEnd":1755,"domComplete":2647,"loadEventStart":2647,"loadEventEnd":2648,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1673},{"name":"bigPipe.sidebar-id.end","time":1673.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1675.0999999046326},{"name":"activityTabFullyLoaded","time":1770.3999998569489}],"measures":[],"correlationId":"ced3eb0ecacbe1","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":109,"dbReadsTimeInMs":24,"dbConnsTimeInMs":34,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}