In MDEV-13400, I mentioned that MariaDB backup ignores the --plugin-dir command-line option during the backup stage. Instead, the tool queries the server for its value, and it always uses that value. It sounds like we do not want to change this.
I believe that the --plugin-dir command-line option is read during the prepare stage.
We should probably update the --help text of the mariabackup tool to specify that the --plugin-dir option is only valid during the prepare stage. We should probably add a similar note to the documentation:
https://mariadb.com/kb/en/the-mariadb-library/mariabackup-options/
Should the utility also warn the user if they specify the --plugin-dir command-line option during the backup stage?
{"report":{"fcp":1616.8000001907349,"ttfb":384.80000019073486,"pageVisibility":"visible","entityId":62816,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"47e9ae2a-8ccd-48a1-99e8-26299431b740","navigationType":0,"readyForUser":1685.6000003814697,"redirectCount":0,"resourceLoadedEnd":1911.2000007629395,"resourceLoadedStart":393.5,"resourceTiming":[{"duration":698.9000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":393.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":393.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1092.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":699.1000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":393.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":393.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1092.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":761.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":394.1000003814697,"connectEnd":394.1000003814697,"connectStart":394.1000003814697,"domainLookupEnd":394.1000003814697,"domainLookupStart":394.1000003814697,"fetchStart":394.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":394.1000003814697,"responseEnd":1155.8000001907349,"responseStart":1155.8000001907349,"secureConnectionStart":394.1000003814697},{"duration":834.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":394.9000005722046,"connectEnd":394.9000005722046,"connectStart":394.9000005722046,"domainLookupEnd":394.9000005722046,"domainLookupStart":394.9000005722046,"fetchStart":394.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":394.9000005722046,"responseEnd":1229.8000001907349,"responseStart":1229.8000001907349,"secureConnectionStart":394.9000005722046},{"duration":838.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":395.1000003814697,"connectEnd":395.1000003814697,"connectStart":395.1000003814697,"domainLookupEnd":395.1000003814697,"domainLookupStart":395.1000003814697,"fetchStart":395.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":395.1000003814697,"responseEnd":1233.9000005722046,"responseStart":1233.9000005722046,"secureConnectionStart":395.1000003814697},{"duration":839.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":395.30000019073486,"connectEnd":395.30000019073486,"connectStart":395.30000019073486,"domainLookupEnd":395.30000019073486,"domainLookupStart":395.30000019073486,"fetchStart":395.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":395.30000019073486,"responseEnd":1234.4000005722046,"responseStart":1234.4000005722046,"secureConnectionStart":395.30000019073486},{"duration":839.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":395.4000005722046,"connectEnd":395.4000005722046,"connectStart":395.4000005722046,"domainLookupEnd":395.4000005722046,"domainLookupStart":395.4000005722046,"fetchStart":395.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":395.4000005722046,"responseEnd":1234.9000005722046,"responseStart":1234.9000005722046,"secureConnectionStart":395.4000005722046},{"duration":905.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":395.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":395.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1301.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":839.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":395.80000019073486,"connectEnd":395.80000019073486,"connectStart":395.80000019073486,"domainLookupEnd":395.80000019073486,"domainLookupStart":395.80000019073486,"fetchStart":395.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":395.80000019073486,"responseEnd":1235.4000005722046,"responseStart":1235.4000005722046,"secureConnectionStart":395.80000019073486},{"duration":905.3000001907349,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":395.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":395.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1301.2000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":839.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":396.1000003814697,"connectEnd":396.1000003814697,"connectStart":396.1000003814697,"domainLookupEnd":396.1000003814697,"domainLookupStart":396.1000003814697,"fetchStart":396.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":396.1000003814697,"responseEnd":1236,"responseStart":1236,"secureConnectionStart":396.1000003814697},{"duration":1512.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":397.80000019073486,"connectEnd":397.80000019073486,"connectStart":397.80000019073486,"domainLookupEnd":397.80000019073486,"domainLookupStart":397.80000019073486,"fetchStart":397.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":397.80000019073486,"responseEnd":1910.4000005722046,"responseStart":1910.4000005722046,"secureConnectionStart":397.80000019073486},{"duration":1508.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":402.4000005722046,"connectEnd":402.4000005722046,"connectStart":402.4000005722046,"domainLookupEnd":402.4000005722046,"domainLookupStart":402.4000005722046,"fetchStart":402.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":402.4000005722046,"responseEnd":1911.2000007629395,"responseStart":1911.2000007629395,"secureConnectionStart":402.4000005722046},{"duration":457.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1313.4000005722046,"connectEnd":1313.4000005722046,"connectStart":1313.4000005722046,"domainLookupEnd":1313.4000005722046,"domainLookupStart":1313.4000005722046,"fetchStart":1313.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1313.4000005722046,"responseEnd":1771.2000007629395,"responseStart":1771.2000007629395,"secureConnectionStart":1313.4000005722046}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":204,"responseStart":385,"responseEnd":402,"domLoading":388,"domInteractive":1928,"domContentLoadedEventStart":1928,"domContentLoadedEventEnd":1966,"domComplete":2126,"loadEventStart":2126,"loadEventEnd":2127,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1915.5},{"name":"bigPipe.sidebar-id.end","time":1916.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1916.4000005722046},{"name":"bigPipe.activity-panel-pipe-id.end","time":1917.6000003814697},{"name":"activityTabFullyLoaded","time":1998.8000001907349}],"measures":[],"correlationId":"53f28f49ee22ba","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
since
MDEV-13608, plugin-dir is also used during backup stage to set the path for the client-side authentication plugins. Unfortunate consequence of mariabackup being half-server/half-client is that the same options can be (and now are) interpreted in different ways. So, no we cannot ignore or warn if it is used on command line.