A test environment was generating server_id / wsrep_gtid_domain_id based on certain unsigned 32-bit hash values. This sometimes resulted in a large unsigned value:
MariaDB [(none)]> select @@wsrep_gtid_domain_id;
|
+------------------------+
|
| @@wsrep_gtid_domain_id |
|
+------------------------+
|
| 3707887008 |
|
+------------------------+
|
1 row in set (0.00 sec)
|
When restarting a node and IST was initiated, the wsrep-sst-method=xtrabackup-v2 script was started with a negative gtid-domain-id as seen in the donor's logs:
[Note] WSREP: IST request: c0bdbd55-5b47-11e6-b904-d2ce4687a92f:9588-9788|tcp://10.0.0.1:4568
|
[Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
|
[Note] WSREP: Running: 'wsrep_sst_xtrabackup-v2 --role 'donor' --address '10.0.0.1:4444/xtrabackup_sst//1' --socket '/var/run/mysqld/mysqld.sock' --datadir '/va
|
r/lib/mysql/' --binlog '/var/log/mysql/mysql-bin' --gtid 'c0bdbd55-5b47-11e6-b904-d2ce4687a92f:9588' --gtid-domain-id '-587080288' --bypass'
|
And this resulted in a failure on the joiner:
WSREP_SST: [INFO] xtrabackup_ist received from donor: Running IST (20160808 18:09:44.535)
|
WSREP_SST: [INFO] Galera co-ords from recovery: c0bdbd55-5b47-11e6-b904-d2ce4687a92f:9588 -587080288 (20160808 18:09:44.538)
|
WSREP_SST: [INFO] Total time on joiner: 0 seconds (20160808 18:09:44.540)
|
WSREP_SST: [INFO] Removing the sst_in_progress file (20160808 18:09:44.542)
|
[ERROR] WSREP: Failed to get donor wsrep_gtid_domain_id.
|
[ERROR] WSREP: SST failed: 22 (Invalid argument)
|
[ERROR] Aborting
|
mysqld[779]: Error in my_thread_global_end(): 1 threads didn't exit
|
As a workaround, the wsrep_gtid_domain_id was clamped to range of a signed 32-bit integer and this problem was avoided. However, I think this should probably work.
{"report":{"fcp":1205.3000001907349,"ttfb":203.2000002861023,"pageVisibility":"visible","entityId":57597,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"02f6f458-bf75-42fe-8342-980112eedf48","navigationType":0,"readyForUser":1312.2000002861023,"redirectCount":0,"resourceLoadedEnd":1701.5999999046326,"resourceLoadedStart":212.90000009536743,"resourceTiming":[{"duration":345.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":212.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":558.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":345,"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":214.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":559.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":404.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":214.40000009536743,"connectEnd":214.40000009536743,"connectStart":214.40000009536743,"domainLookupEnd":214.40000009536743,"domainLookupStart":214.40000009536743,"fetchStart":214.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":214.40000009536743,"responseEnd":618.5999999046326,"responseStart":618.5999999046326,"secureConnectionStart":214.40000009536743},{"duration":442,"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":214.5,"connectEnd":214.5,"connectStart":214.5,"domainLookupEnd":214.5,"domainLookupStart":214.5,"fetchStart":214.5,"redirectEnd":0,"redirectStart":0,"requestStart":214.5,"responseEnd":656.5,"responseStart":656.5,"secureConnectionStart":214.5},{"duration":445.5,"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":214.7000002861023,"connectEnd":214.7000002861023,"connectStart":214.7000002861023,"domainLookupEnd":214.7000002861023,"domainLookupStart":214.7000002861023,"fetchStart":214.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":214.7000002861023,"responseEnd":660.2000002861023,"responseStart":660.2000002861023,"secureConnectionStart":214.7000002861023},{"duration":446.30000019073486,"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":215,"connectEnd":215,"connectStart":215,"domainLookupEnd":215,"domainLookupStart":215,"fetchStart":215,"redirectEnd":0,"redirectStart":0,"requestStart":215,"responseEnd":661.3000001907349,"responseStart":661.3000001907349,"secureConnectionStart":215},{"duration":446.90000009536743,"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":215.09999990463257,"connectEnd":215.09999990463257,"connectStart":215.09999990463257,"domainLookupEnd":215.09999990463257,"domainLookupStart":215.09999990463257,"fetchStart":215.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":215.09999990463257,"responseEnd":662,"responseStart":662,"secureConnectionStart":215.09999990463257},{"duration":559.0999999046326,"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":215.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":774.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":447.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":215.5,"connectEnd":215.5,"connectStart":215.5,"domainLookupEnd":215.5,"domainLookupStart":215.5,"fetchStart":215.5,"redirectEnd":0,"redirectStart":0,"requestStart":215.5,"responseEnd":662.8000001907349,"responseStart":662.8000001907349,"secureConnectionStart":215.5},{"duration":558.9000000953674,"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":215.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":774.5,"responseStart":0,"secureConnectionStart":0},{"duration":447.69999980926514,"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":215.80000019073486,"connectEnd":215.80000019073486,"connectStart":215.80000019073486,"domainLookupEnd":215.80000019073486,"domainLookupStart":215.80000019073486,"fetchStart":215.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":215.80000019073486,"responseEnd":663.5,"responseStart":663.5,"secureConnectionStart":215.80000019073486},{"duration":794.5,"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":216.7000002861023,"connectEnd":216.7000002861023,"connectStart":216.7000002861023,"domainLookupEnd":216.7000002861023,"domainLookupStart":216.7000002861023,"fetchStart":216.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":216.7000002861023,"responseEnd":1011.2000002861023,"responseStart":1011.2000002861023,"secureConnectionStart":216.7000002861023},{"duration":1484.8999996185303,"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":216.7000002861023,"connectEnd":216.7000002861023,"connectStart":216.7000002861023,"domainLookupEnd":216.7000002861023,"domainLookupStart":216.7000002861023,"fetchStart":216.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":216.7000002861023,"responseEnd":1701.5999999046326,"responseStart":1701.5999999046326,"secureConnectionStart":216.7000002861023},{"duration":377.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":807.3000001907349,"connectEnd":807.3000001907349,"connectStart":807.3000001907349,"domainLookupEnd":807.3000001907349,"domainLookupStart":807.3000001907349,"fetchStart":807.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":807.3000001907349,"responseEnd":1184.7000002861023,"responseStart":1184.7000002861023,"secureConnectionStart":807.3000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":40,"responseStart":204,"responseEnd":208,"domLoading":211,"domInteractive":1722,"domContentLoadedEventStart":1722,"domContentLoadedEventEnd":1776,"domComplete":3684,"loadEventStart":3684,"loadEventEnd":3686,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1703.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1704.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1704.7000002861023},{"name":"bigPipe.activity-panel-pipe-id.end","time":1706.9000000953674},{"name":"activityTabFullyLoaded","time":1782.0999999046326}],"measures":[],"correlationId":"84877cbb39c96","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":8,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}