When an user wants to set an algorithm for ALTER TABLE, he can do it in two ways:
- use SET SESSION ALGORITHM variable
- specify ALGORITHM= in the ALTER statement
Unfortunately, the former will cause the alter to be processed in different ways on master and replicas (either async or galera replicas) because, obviously, SET SESSION is not replicated.
So, the outcome in presence of replication is not what the user wants.
Furthermore, this may cause galera cluster breakdown when the alter fails on master due to unsupported algorithm, but it is executed on the other galera nodes because there, default algorithm is selected.
I would suggest to deprecate the former way to specify ALGORITHM for ALTER and only allow it to be specified in ALTER statement itself.
This will avoid operational incidents (I have already witnessed a few myself).
Thanks
Rick
{"report":{"fcp":900,"ttfb":182.89999961853027,"pageVisibility":"visible","entityId":119647,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"5982dcc1-2561-41a2-835e-573b728d2b5a","navigationType":0,"readyForUser":969.8999996185303,"redirectCount":0,"resourceLoadedEnd":1064,"resourceLoadedStart":188.39999961853027,"resourceTiming":[{"duration":194.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":188.39999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":188.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":383.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":194.89999961853027,"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":188.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":188.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":383.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":204.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":188.89999961853027,"connectEnd":188.89999961853027,"connectStart":188.89999961853027,"domainLookupEnd":188.89999961853027,"domainLookupStart":188.89999961853027,"fetchStart":188.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":188.89999961853027,"responseEnd":393.29999923706055,"responseStart":393.29999923706055,"secureConnectionStart":188.89999961853027},{"duration":253,"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":189.0999994277954,"connectEnd":189.0999994277954,"connectStart":189.0999994277954,"domainLookupEnd":189.0999994277954,"domainLookupStart":189.0999994277954,"fetchStart":189.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":189.0999994277954,"responseEnd":442.0999994277954,"responseStart":442.0999994277954,"secureConnectionStart":189.0999994277954},{"duration":256.6000003814697,"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":189.29999923706055,"connectEnd":189.29999923706055,"connectStart":189.29999923706055,"domainLookupEnd":189.29999923706055,"domainLookupStart":189.29999923706055,"fetchStart":189.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":189.29999923706055,"responseEnd":445.8999996185303,"responseStart":445.8999996185303,"secureConnectionStart":189.29999923706055},{"duration":256.79999923706055,"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":189.5,"connectEnd":189.5,"connectStart":189.5,"domainLookupEnd":189.5,"domainLookupStart":189.5,"fetchStart":189.5,"redirectEnd":0,"redirectStart":0,"requestStart":189.5,"responseEnd":446.29999923706055,"responseStart":446.29999923706055,"secureConnectionStart":189.5},{"duration":257,"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":189.69999980926514,"connectEnd":189.69999980926514,"connectStart":189.69999980926514,"domainLookupEnd":189.69999980926514,"domainLookupStart":189.69999980926514,"fetchStart":189.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":189.69999980926514,"responseEnd":446.69999980926514,"responseStart":446.69999980926514,"secureConnectionStart":189.69999980926514},{"duration":348.6000003814697,"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":189.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":189.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":538.5,"responseStart":0,"secureConnectionStart":0},{"duration":257.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":190,"connectEnd":190,"connectStart":190,"domainLookupEnd":190,"domainLookupStart":190,"fetchStart":190,"redirectEnd":0,"redirectStart":0,"requestStart":190,"responseEnd":447.19999980926514,"responseStart":447.19999980926514,"secureConnectionStart":190},{"duration":348.3999996185303,"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":190.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":190.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":538.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":257.30000019073486,"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":190.39999961853027,"connectEnd":190.39999961853027,"connectStart":190.39999961853027,"domainLookupEnd":190.39999961853027,"domainLookupStart":190.39999961853027,"fetchStart":190.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":190.39999961853027,"responseEnd":447.69999980926514,"responseStart":447.69999980926514,"secureConnectionStart":190.39999961853027},{"duration":427.0999994277954,"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":191.5,"connectEnd":191.5,"connectStart":191.5,"domainLookupEnd":191.5,"domainLookupStart":191.5,"fetchStart":191.5,"redirectEnd":0,"redirectStart":0,"requestStart":191.5,"responseEnd":618.5999994277954,"responseStart":618.5999994277954,"secureConnectionStart":191.5},{"duration":858.7999992370605,"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":191.5,"connectEnd":191.5,"connectStart":191.5,"domainLookupEnd":191.5,"domainLookupStart":191.5,"fetchStart":191.5,"redirectEnd":0,"redirectStart":0,"requestStart":191.5,"responseEnd":1050.2999992370605,"responseStart":1050.2999992370605,"secureConnectionStart":191.5},{"duration":69.20000076293945,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":550.7999992370605,"connectEnd":550.7999992370605,"connectStart":550.7999992370605,"domainLookupEnd":550.7999992370605,"domainLookupStart":550.7999992370605,"fetchStart":550.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":550.7999992370605,"responseEnd":620,"responseStart":620,"secureConnectionStart":550.7999992370605},{"duration":247.9000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/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":816.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":816.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1064,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":33,"responseStart":182,"responseEnd":186,"domLoading":186,"domInteractive":1072,"domContentLoadedEventStart":1072,"domContentLoadedEventEnd":1111,"domComplete":1885,"loadEventStart":1885,"loadEventEnd":1887,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1052.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1053},{"name":"bigPipe.activity-panel-pipe-id.start","time":1053.0999994277954},{"name":"bigPipe.activity-panel-pipe-id.end","time":1055.5999994277954},{"name":"activityTabFullyLoaded","time":1117.1999998092651}],"measures":[],"correlationId":"8c3c6ed618add5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}