SST donor node has status Joined after successful sync
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The SST donor node has status "Joined" rather than "Synced" following successful SST.
To replicate:
1) Existing cluster is down. Bootstrap first node by adding "wsrep_
2) Check status of bootstrapped node:
mysql> SHOW STATUS LIKE 'wsrep_
+------
| Variable_name | Value |
+------
| wsrep_local_
| wsrep_local_state | 4 |
| wsrep_local_
+------
3) Start second node (force SST by deleting grastate.dat if it exists)
/etc/init.d/mysql start
4) Check status on second node
mysql> SHOW STATUS LIKE 'wsrep_
+------
| Variable_name | Value |
+------
| wsrep_local_
| wsrep_local_state | 4 |
| wsrep_local_
+------
5) Check status again on first node:
mysql> SHOW STATUS LIKE 'wsrep_
+------
| Variable_name | Value |
+------
| wsrep_local_
| wsrep_local_state | 3 |
| wsrep_local_
+------
Status on first node is stuck on "Joined" and never becomes "Synced"; thus it's unavailable as a donor. If the second node crashes, no new nodes can join the cluster.
If I restart the first node, it shows status "Synced".
If I then stop the first node and force a sync from the second node, the donor node ends up with status "Joined".
Environment:
OS: Debian 8 (jessie)
percona-
percona-toolkit 2.2.18-1
percona-xtrabackup 2.3.5-1.jessie
percona-
percona-
percona-
percona-
percona-
percona-
Changed in percona-xtradb-cluster: | |
status: | New → Confirmed |
status: | Confirmed → Fix Committed |
Changed in percona-xtradb-cluster: | |
milestone: | none → 5.6.32-25.17 |
status: | Fix Committed → Fix Released |
Here are the log entries from the donor, from the end of the SST:
2016-08-01 14:50:23 19837 [Note] WSREP: 0.0 (dev-drupalsql2 .ucar.edu) : State transfer to 1.0 (dev-drupalsqlm aster.ucar. edu) complete. .ucar.edu) was re-transitioned to DONOR mode before it synced. aster.ucar. edu): State transfer from 0.0 (dev-drupalsql2 .ucar.edu) complete. aster.ucar. edu) synced with group.
2016-08-01 14:50:23 19837 [Note] WSREP: Shifting DONOR/DESYNCED -> JOINED (TO: 3208942)
2016-08-01 14:50:23 19837 [Note] WSREP: SYNC message ignored as node 0.0 (dev-drupalsql2
2016-08-01 14:50:23 19837 [ERROR] WSREP: sst sent called when not SST donor, state JOINED
WSREP_SST: [INFO] Total time on donor: 0 seconds (20160801 14:50:23.764)
WSREP_SST: [INFO] Cleaning up temporary directories (20160801 14:50:23.776)
2016-08-01 14:50:37 19837 [Note] WSREP: 1.0 (dev-drupalsqlm
2016-08-01 14:50:37 19837 [Note] WSREP: Member 1.0 (dev-drupalsqlm