[MDEV-6260] Isolated galera node is out of sync Created: 2014-05-22 Updated: 2014-05-22 Resolved: 2014-05-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.37-galera, 10.0.10-galera |
| Fix Version/s: | 5.5.38-galera, 10.0.11-galera |
| Type: | Bug | Priority: | Critical |
| Reporter: | Jan Lindström (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | galera | ||
| Description |
|
I used 3 node galera cluster with empty databases. I started all three nodes and created following tables:
After this, I loaded some data with:
Now I connected to the node1 and isolated it from galera cluster with:
I loaded additional rows to another table (note that there is no other load to nodes):
And, finally put the isolated node back to galera cluster :
Two other nodes do not see rows on table Test_2 (table Test_1 is fine on all nodes) and node2 does not seem to be ever in prepared mode. Last part of error log on isolated node:
|
| Comments |
| Comment by Jan Lindström (Inactive) [ 2014-05-22 ] | ||||||
|
It seems that problem is that wsrep_cluster_address is empty. If I set that:
Now, the isolated node joins back to cluster, but databases are not sync, i.e. data on Test_2 is not replicated. Problem is that galera does not know that data has been changed. | ||||||
| Comment by Jan Lindström (Inactive) [ 2014-05-22 ] | ||||||
|
Thus on isolated node
This creates a new cluster based on this most up to date node. Then you join other nodes and they will take SST. You may use bootstrap when nodes are joined to cluster.
| ||||||
| Comment by Jan Lindström (Inactive) [ 2014-05-22 ] | ||||||
|
Works as designed. You should not isolate the node while you load data or if you isolate you must create a new cluster based on this most up to date node. |