We have observed that galera cluster replicates commands on all other nodes when it was actually refused on one node due to lack of database permissions:
Steps to reproduce this issue:
Set up 3x nodes cluster (db01, db02 and db03):
|
-- Add database user account with following permissions:
|
|
GRANT SELECT, INSERT, UPDATE, DELETE ON `test`.* TO 'iayyaz'@'%' identified by '123';
|
|
-- Create dummy database + table
|
|
CREATE DATABASE test;
|
USE test;
|
create table t1 (a int);
|
– Login using user 'iayyaz' to node 'db01'
– Issue following commands:
|
rename table t1 to t2;
|
(this command would fail due to lack of permissions)
|
ERROR 1142 (42000): DROP, ALTER command denied to user 'iayyaz'@'10.10.16.7' for table 't1'
|
|
– Login to node 'db02'
You would find table has been renamed:
MariaDB [test]> show tables;
|
+----------------+
|
| Tables_in_test |
|
+----------------+
|
| t2 |
|
+----------------+
|
1 row in set (0.00 sec)
|
|
{"report":{"fcp":873.5999999046326,"ttfb":154.19999980926514,"pageVisibility":"visible","entityId":52608,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"525a3a8d-d627-437d-b88f-2dce44958214","navigationType":0,"readyForUser":945.5,"redirectCount":0,"resourceLoadedEnd":831.1999998092651,"resourceLoadedStart":161.19999980926514,"resourceTiming":[{"duration":7.900000095367432,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":161.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":169.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":7.8999998569488525,"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":161.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":169.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":162.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":165.69999980926514,"connectEnd":165.69999980926514,"connectStart":165.69999980926514,"domainLookupEnd":165.69999980926514,"domainLookupStart":165.69999980926514,"fetchStart":165.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":165.69999980926514,"responseEnd":327.7999999523163,"responseStart":327.7999999523163,"secureConnectionStart":165.69999980926514},{"duration":245.40000009536743,"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":166.59999990463257,"connectEnd":166.59999990463257,"connectStart":166.59999990463257,"domainLookupEnd":166.59999990463257,"domainLookupStart":166.59999990463257,"fetchStart":166.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":166.59999990463257,"responseEnd":412,"responseStart":412,"secureConnectionStart":166.59999990463257},{"duration":251,"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":166.89999985694885,"connectEnd":166.89999985694885,"connectStart":166.89999985694885,"domainLookupEnd":166.89999985694885,"domainLookupStart":166.89999985694885,"fetchStart":166.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":166.89999985694885,"responseEnd":417.89999985694885,"responseStart":417.89999985694885,"secureConnectionStart":166.89999985694885},{"duration":252.40000009536743,"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":167.09999990463257,"connectEnd":167.09999990463257,"connectStart":167.09999990463257,"domainLookupEnd":167.09999990463257,"domainLookupStart":167.09999990463257,"fetchStart":167.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":167.09999990463257,"responseEnd":419.5,"responseStart":419.5,"secureConnectionStart":167.09999990463257},{"duration":253.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":167.29999995231628,"connectEnd":167.29999995231628,"connectStart":167.29999995231628,"domainLookupEnd":167.29999995231628,"domainLookupStart":167.29999995231628,"fetchStart":167.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":167.29999995231628,"responseEnd":421.19999980926514,"responseStart":421.19999980926514,"secureConnectionStart":167.29999995231628},{"duration":310.59999990463257,"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":167.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":478.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":255.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":167.59999990463257,"connectEnd":167.59999990463257,"connectStart":167.59999990463257,"domainLookupEnd":167.59999990463257,"domainLookupStart":167.59999990463257,"fetchStart":167.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":167.59999990463257,"responseEnd":423.5,"responseStart":423.5,"secureConnectionStart":167.59999990463257},{"duration":310.5,"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":167.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":478.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":264.10000014305115,"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":167.89999985694885,"connectEnd":167.89999985694885,"connectStart":167.89999985694885,"domainLookupEnd":167.89999985694885,"domainLookupStart":167.89999985694885,"fetchStart":167.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":167.89999985694885,"responseEnd":432,"responseStart":432,"secureConnectionStart":167.89999985694885},{"duration":351.2000000476837,"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":168.69999980926514,"connectEnd":168.69999980926514,"connectStart":168.69999980926514,"domainLookupEnd":168.69999980926514,"domainLookupStart":168.69999980926514,"fetchStart":168.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":168.69999980926514,"responseEnd":519.8999998569489,"responseStart":519.8999998569489,"secureConnectionStart":168.69999980926514},{"duration":374,"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":168.79999995231628,"connectEnd":168.79999995231628,"connectStart":168.79999995231628,"domainLookupEnd":168.79999995231628,"domainLookupStart":168.79999995231628,"fetchStart":168.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":168.79999995231628,"responseEnd":542.7999999523163,"responseStart":542.7999999523163,"secureConnectionStart":168.79999995231628},{"duration":28.700000047683716,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":492.09999990463257,"connectEnd":492.09999990463257,"connectStart":492.09999990463257,"domainLookupEnd":492.09999990463257,"domainLookupStart":492.09999990463257,"fetchStart":492.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":492.09999990463257,"responseEnd":520.7999999523163,"responseStart":520.7999999523163,"secureConnectionStart":492.09999990463257},{"duration":306.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":524.7999999523163,"connectEnd":524.7999999523163,"connectStart":524.7999999523163,"domainLookupEnd":524.7999999523163,"domainLookupStart":524.7999999523163,"fetchStart":524.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":524.7999999523163,"responseEnd":831.1999998092651,"responseStart":831.1999998092651,"secureConnectionStart":524.7999999523163},{"duration":150,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":857.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":857.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1007.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":4,"responseStart":155,"responseEnd":163,"domLoading":160,"domInteractive":1009,"domContentLoadedEventStart":1009,"domContentLoadedEventEnd":1056,"domComplete":1452,"loadEventStart":1452,"loadEventEnd":1453,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":984.0999999046326},{"name":"bigPipe.sidebar-id.end","time":984.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":985},{"name":"bigPipe.activity-panel-pipe-id.end","time":987.5999999046326},{"name":"activityTabFullyLoaded","time":1066.8999998569489}],"measures":[],"correlationId":"9748a07a8bdd6","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":85,"dbReadsTimeInMs":9,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}