I have a backup slave server, where I take regular snapshots of the database via LVM.
By default, with relay_log_purge enabled, the relay log files get deleted as soon as the server has processed them. I thought it might be handy to hang onto them, in case they were useful if the need to restore from these snapshots ever arose, so I disabled relay_log_purge.
I was expecting the relay log files to be automatically deleted once relay_log_space_limit was hit, but instead once that limit was hit, new relay logs stopped being written and replication ground to an ugly halt.
It seems to me that the behavior should be to cycle out old relay logs when relay_log_space_limit is hit, or if that is unset, when the partition fills up. That would allow me to keep as much relay log "as possible" while also not having to manually (is that even possible/recommended?) delete old log files.
- relates to
-
MDEV-31404
Implement binlog_space_limit
-
-
Closed
{"report":{"fcp":901.6000000238419,"ttfb":167.89999997615814,"pageVisibility":"visible","entityId":113281,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"53bb7095-0a30-43d7-a0ed-85273b56a336","navigationType":0,"readyForUser":965,"redirectCount":0,"resourceLoadedEnd":1177,"resourceLoadedStart":173.19999998807907,"resourceTiming":[{"duration":222,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":173.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":395.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":222.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":173.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":395.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":230.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":173.60000002384186,"connectEnd":173.60000002384186,"connectStart":173.60000002384186,"domainLookupEnd":173.60000002384186,"domainLookupStart":173.60000002384186,"fetchStart":173.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":173.60000002384186,"responseEnd":404.30000001192093,"responseStart":404.30000001192093,"secureConnectionStart":173.60000002384186},{"duration":308.5999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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","startTime":173.80000001192093,"connectEnd":173.80000001192093,"connectStart":173.80000001192093,"domainLookupEnd":173.80000001192093,"domainLookupStart":173.80000001192093,"fetchStart":173.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":173.80000001192093,"responseEnd":482.39999997615814,"responseStart":482.39999997615814,"secureConnectionStart":173.80000001192093},{"duration":312,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":174,"connectEnd":174,"connectStart":174,"domainLookupEnd":174,"domainLookupStart":174,"fetchStart":174,"redirectEnd":0,"redirectStart":0,"requestStart":174,"responseEnd":486,"responseStart":486,"secureConnectionStart":174},{"duration":312.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":174.19999998807907,"connectEnd":174.19999998807907,"connectStart":174.19999998807907,"domainLookupEnd":174.19999998807907,"domainLookupStart":174.19999998807907,"fetchStart":174.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":174.19999998807907,"responseEnd":486.5,"responseStart":486.5,"secureConnectionStart":174.19999998807907},{"duration":312.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":174.39999997615814,"connectEnd":174.39999997615814,"connectStart":174.39999997615814,"domainLookupEnd":174.39999997615814,"domainLookupStart":174.39999997615814,"fetchStart":174.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":174.39999997615814,"responseEnd":486.89999997615814,"responseStart":486.89999997615814,"secureConnectionStart":174.39999997615814},{"duration":369.30000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":174.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":174.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":543.8000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":312.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":174.69999998807907,"connectEnd":174.69999998807907,"connectStart":174.69999998807907,"domainLookupEnd":174.69999998807907,"domainLookupStart":174.69999998807907,"fetchStart":174.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":174.69999998807907,"responseEnd":487.30000001192093,"responseStart":487.30000001192093,"secureConnectionStart":174.69999998807907},{"duration":369.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":174.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":174.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":544,"responseStart":0,"secureConnectionStart":0},{"duration":312.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":175,"connectEnd":175,"connectStart":175,"domainLookupEnd":175,"domainLookupStart":175,"fetchStart":175,"redirectEnd":0,"redirectStart":0,"requestStart":175,"responseEnd":487.89999997615814,"responseStart":487.89999997615814,"secureConnectionStart":175},{"duration":999.6000000238419,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":176,"connectEnd":176,"connectStart":176,"domainLookupEnd":176,"domainLookupStart":176,"fetchStart":176,"redirectEnd":0,"redirectStart":0,"requestStart":176,"responseEnd":1175.6000000238419,"responseStart":1175.6000000238419,"secureConnectionStart":176},{"duration":1000.0999999642372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":176.10000002384186,"connectEnd":176.10000002384186,"connectStart":176.10000002384186,"domainLookupEnd":176.10000002384186,"domainLookupStart":176.10000002384186,"fetchStart":176.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":176.10000002384186,"responseEnd":1176.199999988079,"responseStart":1176.1000000238419,"secureConnectionStart":176.10000002384186},{"duration":126.39999997615814,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":555.1000000238419,"connectEnd":555.1000000238419,"connectStart":555.1000000238419,"domainLookupEnd":555.1000000238419,"domainLookupStart":555.1000000238419,"fetchStart":555.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":555.1000000238419,"responseEnd":681.5,"responseStart":681.5,"secureConnectionStart":555.1000000238419},{"duration":367.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":809.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":809.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1176.800000011921,"responseStart":0,"secureConnectionStart":0},{"duration":367.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2bu7/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":809.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":809.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1177,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":18,"responseStart":168,"responseEnd":169,"domLoading":171,"domInteractive":1192,"domContentLoadedEventStart":1192,"domContentLoadedEventEnd":1231,"domComplete":1995,"loadEventStart":1995,"loadEventEnd":1996,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1181.699999988079},{"name":"bigPipe.sidebar-id.end","time":1182.3999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1182.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1183.5},{"name":"activityTabFullyLoaded","time":1244.199999988079}],"measures":[],"correlationId":"e45a1266368045","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":93,"dbReadsTimeInMs":11,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The solution here might end up being related to the solution for
MDEV-29196.