I have a server where the history length keeps growing. At first we had them in shared system space but we moved them with using innodb_undo_tablespaces. This did not helped us either.
Right now the length is 124355327 and the server is not making transactions right now (for 1 hour) just to see if the purge starts. It's pretty idle.
Ihave the following parameters, most of them are extreme just to trigger some purge actions.
{{MariaDB [(none)]> show global variables like "innodb%purge%";
innodb_max_purge_lag |
50000 |
innodb_max_purge_lag_delay |
0 |
innodb_max_purge_lag_wait |
4294967295 |
innodb_purge_batch_size |
300 |
innodb_purge_rseg_truncate_frequency |
1 |
innodb_purge_threads |
32 |
innodb_undo_log_truncate |
1 |
innodb status:
Purge done for trx's n:o < 258032014 undo n:o < 5633661 state: running
|
History list length 124560317
|
Looks a little bit like #MDEV-29401 but that one should be fixed by the version we are already using.
{"report":{"fcp":1379.7000000476837,"ttfb":494,"pageVisibility":"visible","entityId":123409,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f6dc4abe-6285-4957-861a-2515d9667c1d","navigationType":0,"readyForUser":1453.9000000953674,"redirectCount":0,"resourceLoadedEnd":1550.6000001430511,"resourceLoadedStart":499.10000014305115,"resourceTiming":[{"duration":392.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":499.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":499.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":891.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":393,"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":499.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":499.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":892.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":416.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":499.60000014305115,"connectEnd":499.60000014305115,"connectStart":499.60000014305115,"domainLookupEnd":499.60000014305115,"domainLookupStart":499.60000014305115,"fetchStart":499.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":499.60000014305115,"responseEnd":916.2000000476837,"responseStart":916.2000000476837,"secureConnectionStart":499.60000014305115},{"duration":473.7000000476837,"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":499.7000000476837,"connectEnd":499.7000000476837,"connectStart":499.7000000476837,"domainLookupEnd":499.7000000476837,"domainLookupStart":499.7000000476837,"fetchStart":499.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":499.7000000476837,"responseEnd":973.4000000953674,"responseStart":973.4000000953674,"secureConnectionStart":499.7000000476837},{"duration":477.5,"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":499.90000009536743,"connectEnd":499.90000009536743,"connectStart":499.90000009536743,"domainLookupEnd":499.90000009536743,"domainLookupStart":499.90000009536743,"fetchStart":499.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":499.90000009536743,"responseEnd":977.4000000953674,"responseStart":977.4000000953674,"secureConnectionStart":499.90000009536743},{"duration":477.7000000476837,"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":500.10000014305115,"connectEnd":500.10000014305115,"connectStart":500.10000014305115,"domainLookupEnd":500.10000014305115,"domainLookupStart":500.10000014305115,"fetchStart":500.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":500.10000014305115,"responseEnd":977.8000001907349,"responseStart":977.8000001907349,"secureConnectionStart":500.10000014305115},{"duration":477.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":500.30000019073486,"connectEnd":500.30000019073486,"connectStart":500.30000019073486,"domainLookupEnd":500.30000019073486,"domainLookupStart":500.30000019073486,"fetchStart":500.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":500.30000019073486,"responseEnd":978.2000000476837,"responseStart":978.2000000476837,"secureConnectionStart":500.30000019073486},{"duration":559.6000001430511,"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":500.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":500.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1060.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":478.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":500.7000000476837,"connectEnd":500.7000000476837,"connectStart":500.7000000476837,"domainLookupEnd":500.7000000476837,"domainLookupStart":500.7000000476837,"fetchStart":500.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":500.7000000476837,"responseEnd":978.8000001907349,"responseStart":978.8000001907349,"secureConnectionStart":500.7000000476837},{"duration":559.2999999523163,"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":500.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":500.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1060.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":478.30000019073486,"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":501,"connectEnd":501,"connectStart":501,"domainLookupEnd":501,"domainLookupStart":501,"fetchStart":501,"redirectEnd":0,"redirectStart":0,"requestStart":501,"responseEnd":979.3000001907349,"responseStart":979.3000001907349,"secureConnectionStart":501},{"duration":1043.2999999523163,"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":506.80000019073486,"connectEnd":506.80000019073486,"connectStart":506.80000019073486,"domainLookupEnd":506.80000019073486,"domainLookupStart":506.80000019073486,"fetchStart":506.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":506.80000019073486,"responseEnd":1550.1000001430511,"responseStart":1550.1000001430511,"secureConnectionStart":506.80000019073486},{"duration":1043.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":506.80000019073486,"connectEnd":506.80000019073486,"connectStart":506.80000019073486,"domainLookupEnd":506.80000019073486,"domainLookupStart":506.80000019073486,"fetchStart":506.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":506.80000019073486,"responseEnd":1550.6000001430511,"responseStart":1550.6000001430511,"secureConnectionStart":506.80000019073486},{"duration":434.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1072.1000001430511,"connectEnd":1072.1000001430511,"connectStart":1072.1000001430511,"domainLookupEnd":1072.1000001430511,"domainLookupStart":1072.1000001430511,"fetchStart":1072.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":1072.1000001430511,"responseEnd":1506.7000000476837,"responseStart":1506.7000000476837,"secureConnectionStart":1072.1000001430511},{"duration":198.79999995231628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1371.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1371.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1570.6000001430511,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":316,"responseStart":493,"responseEnd":502,"domLoading":497,"domInteractive":1572,"domContentLoadedEventStart":1572,"domContentLoadedEventEnd":1614,"domComplete":1998,"loadEventStart":1999,"loadEventEnd":1999,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1556.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1557.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1557.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1559.4000000953674},{"name":"activityTabFullyLoaded","time":1630.7000000476837}],"measures":[],"correlationId":"70a4cb9182b12b","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":16,"dbConnsTimeInMs":26,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Sorry this isn't a bug. I made a miscalculation in de undo logsizes where I triggered lazy purging.