Data corruption will happen as soon as the galera cluster size change
Let's take a table t made of single auto increment and the following binlog
# at 770118590
|
#160203 21:31:19 server id 10 end_log_pos 770118618 Intvar
|
SET INSERT_ID=134024921/*!*/;
|
# at 770118618
|
#160203 21:31:19 server id 10 end_log_pos 770121328 Query thread_id=961224213 exec_time=0 error_code=0
|
SET TIMESTAMP=1454531479/*!*/;
|
INSERT INTO t values (NULL),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL )
|
/*!*/;
|
# at 770121328
|
#160203 21:31:19 server id 10 end_log_pos 770121355 Xid = 701968214
|
COMMIT/*!*/;
|
# at 770121355
|
#160203 21:31:19 server id 10 end_log_pos 770121414 Query thread_id=961224213 exec_time=0 error_code=0
|
SET TIMESTAMP=1454531479/*!*/;
|
BEGIN
|
/*!*/;
|
# at 770121414
|
#160203 21:31:19 server id 10 end_log_pos 770121442 Intvar
|
SET INSERT_ID=134024933/*!*/;
|
# at 770121442
|
#160203 21:31:19 server id 10 end_log_pos 770124812 Query thread_id=961224213 exec_time=0 error_code=0
|
SET TIMESTAMP=1454531479/*!*/;
|
INSERT INTO t values (NULL),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL ),(NULL )
|
Replication will break because the step of auto increment will change as soon the cluster size change. In statement base the master did not change the step and auto increment overlay will happen and corrupt the data ?
Last_SQL_Error: Error 'Duplicate entry '134024933
|
|
MariaDB [db_calameo_v2]> SELECT ID FROM t WHERE id >= 134024921;
|
+-----------+
|
| LinkID |
|
+-----------+
|
| 134024921 |
|
| 134024923 |
|
| 134024925 |
|
| 134024927 |
|
| 134024929 |
|
| 134024931 |
|
| 134024933 |
|
| 134024935 |
|
| 134024937 |
|
| 134024939 |
|
| 134024941 |
|
| 134024943 |
|
+-----------+
|
So this proposal is to introduce verbose error message at replication start to either change wsrep_auto_increment_control=1 or to use ROW based .
{"report":{"fcp":1441.5,"ttfb":613.3999996185303,"pageVisibility":"visible","entityId":55475,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"91f0edff-6c17-42d5-86ce-6d95d2aa3c68","navigationType":0,"readyForUser":1527.2999997138977,"redirectCount":0,"resourceLoadedEnd":1745,"resourceLoadedStart":622.1999998092651,"resourceTiming":[{"duration":283.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":622.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":622.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":905.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":288.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":622.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":622.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":910.7999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":424.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":622.7999997138977,"connectEnd":622.7999997138977,"connectStart":622.7999997138977,"domainLookupEnd":622.7999997138977,"domainLookupStart":622.7999997138977,"fetchStart":622.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":912.3999996185303,"responseEnd":1047.6999998092651,"responseStart":931.5999999046326,"secureConnectionStart":622.7999997138977},{"duration":539.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":623.2999997138977,"connectEnd":623.2999997138977,"connectStart":623.2999997138977,"domainLookupEnd":623.2999997138977,"domainLookupStart":623.2999997138977,"fetchStart":623.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":912.8999996185303,"responseEnd":1162.7999997138977,"responseStart":927.5,"secureConnectionStart":623.2999997138977},{"duration":307.8999996185303,"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":623.5,"connectEnd":623.5,"connectStart":623.5,"domainLookupEnd":623.5,"domainLookupStart":623.5,"fetchStart":623.5,"redirectEnd":0,"redirectStart":0,"requestStart":913,"responseEnd":931.3999996185303,"responseStart":930.3999996185303,"secureConnectionStart":623.5},{"duration":314.19999980926514,"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":623.6999998092651,"connectEnd":623.6999998092651,"connectStart":623.6999998092651,"domainLookupEnd":623.6999998092651,"domainLookupStart":623.6999998092651,"fetchStart":623.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":913.5,"responseEnd":937.8999996185303,"responseStart":936.8999996185303,"secureConnectionStart":623.6999998092651},{"duration":317.30000019073486,"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":623.8999996185303,"connectEnd":623.8999996185303,"connectStart":623.8999996185303,"domainLookupEnd":623.8999996185303,"domainLookupStart":623.8999996185303,"fetchStart":623.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":920.8999996185303,"responseEnd":941.1999998092651,"responseStart":940.0999999046326,"secureConnectionStart":623.8999996185303},{"duration":296.5,"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":624.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":624.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":920.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":324,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":624.1999998092651,"connectEnd":624.1999998092651,"connectStart":624.1999998092651,"domainLookupEnd":624.1999998092651,"domainLookupStart":624.1999998092651,"fetchStart":624.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":929.0999999046326,"responseEnd":948.1999998092651,"responseStart":947.2999997138977,"secureConnectionStart":624.1999998092651},{"duration":301.90000009536743,"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":624.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":624.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":926.2999997138977,"responseStart":0,"secureConnectionStart":0},{"duration":325.5,"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":624.5999999046326,"connectEnd":624.5999999046326,"connectStart":624.5999999046326,"domainLookupEnd":624.5999999046326,"domainLookupStart":624.5999999046326,"fetchStart":624.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":929.8999996185303,"responseEnd":950.0999999046326,"responseStart":948.3999996185303,"secureConnectionStart":624.5999999046326},{"duration":592.5999999046326,"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":634.1999998092651,"connectEnd":634.1999998092651,"connectStart":634.1999998092651,"domainLookupEnd":634.1999998092651,"domainLookupStart":634.1999998092651,"fetchStart":634.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1214.0999999046326,"responseEnd":1226.7999997138977,"responseStart":1226.0999999046326,"secureConnectionStart":634.1999998092651},{"duration":1105.3000001907349,"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":639.6999998092651,"connectEnd":639.6999998092651,"connectStart":639.6999998092651,"domainLookupEnd":639.6999998092651,"domainLookupStart":639.6999998092651,"fetchStart":639.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1732.2999997138977,"responseEnd":1745,"responseStart":1744.0999999046326,"secureConnectionStart":639.6999998092651},{"duration":247.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1186.3999996185303,"connectEnd":1186.3999996185303,"connectStart":1186.3999996185303,"domainLookupEnd":1186.3999996185303,"domainLookupStart":1186.3999996185303,"fetchStart":1186.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":1380,"responseEnd":1434.2999997138977,"responseStart":1433.5999999046326,"secureConnectionStart":1186.3999996185303},{"duration":378.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1434.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1434.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1813.1999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":374,"responseStart":613,"responseEnd":639,"domLoading":617,"domInteractive":1766,"domContentLoadedEventStart":1766,"domContentLoadedEventEnd":1809,"domComplete":2585,"loadEventStart":2585,"loadEventEnd":2585,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1746.3999996185303},{"name":"bigPipe.sidebar-id.end","time":1747.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1747.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1748.8999996185303},{"name":"activityTabFullyLoaded","time":1825.2999997138977}],"measures":[],"correlationId":"59603af0a61d8e","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":148,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Version for 10.1 branch: https://github.com/MariaDB/server/pull/827