wsrep_start_position does not work unless grastate.dat is parseable
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Galera |
Confirmed
|
Medium
|
Unassigned | |||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Confirmed
|
Medium
|
Unassigned | |||
5.6 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I would expect --wsrep_
Submitting a ---wsrep_
130201 12:36:21 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130201 12:36:21 mysqld_safe WSREP: Running position recovery with --log_error=
130201 12:36:26 mysqld_safe WSREP: Recovered position 8d211006-
130201 12:36:26 [Note] WSREP: wsrep_start_
130201 12:36:26 [Note] WSREP: wsrep_start_
130201 12:36:26 [Note] WSREP: Read nil XID from storage engines, skipping position init
130201 12:36:26 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib/
130201 12:36:26 [Note] WSREP: wsrep_load(): Galera 2.3(r143) by Codership Oy <email address hidden> loaded succesfully.
130201 12:36:26 [Warning] WSREP: Could not open saved state file for reading: /var/lib/
130201 12:36:26 [Note] WSREP: Found saved state: 00000000-
Further, if I create an empty grastate.dat, it also fails:
[root@node3 lib]# ls -lah mysql/grastate.dat
-rw-r--r--. 1 mysql mysql 0 Feb 1 12:42 mysql/grastate.dat
130201 12:43:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130201 12:43:41 mysqld_safe WSREP: Running position recovery with --log_error=
130201 12:43:46 mysqld_safe WSREP: Recovered position 8d211006-
130201 12:43:46 [Note] WSREP: wsrep_start_
130201 12:43:46 [Note] WSREP: wsrep_start_
130201 12:43:46 [Note] WSREP: Read nil XID from storage engines, skipping position init
130201 12:43:46 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib/
130201 12:43:46 [Note] WSREP: wsrep_load(): Galera 2.3(r143) by Codership Oy <email address hidden> loaded succesfully.
130201 12:43:46 [Note] WSREP: Found saved state: 00000000-
From what I can tell, wsrep_start_
[root@node3 lib]# cat mysql/grastate.dat
# GALERA saved state
version: 2.1
uuid: 8d211006-
seqno: -1
cert_index:
[root@node3 lib]# service mysql start --wsrep_
130201 12:49:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130201 12:49:09 mysqld_safe WSREP: Running position recovery with --log_error=
130201 12:49:14 mysqld_safe WSREP: Recovered position 8d211006-
130201 12:49:14 [Note] WSREP: wsrep_start_
130201 12:49:14 [Note] WSREP: wsrep_start_
130201 12:49:14 [Note] WSREP: Read nil XID from storage engines, skipping position init
130201 12:49:14 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib/
130201 12:49:14 [Note] WSREP: wsrep_load(): Galera 2.3(r143) by Codership Oy <email address hidden> loaded succesfully.
130201 12:49:15 [Note] WSREP: Found saved state: 8d211006-
...
130201 12:49:15 [Note] WSREP: State transfer required:
Group state: 8d211006-
Local state: 8d211006-
In all other cases it does a zero state reset and forces SST. This will lead to unexpected results.
Changed in galera: | |
importance: | Low → Medium |
Changed in galera: | |
milestone: | 3.0beta → 3.0 |
Changed in galera: | |
milestone: | 3.0-beta → 3.1 |
Changed in galera: | |
milestone: | 25.3.1 → 25.3.2 |
Changed in galera: | |
milestone: | 25.3.2 → 25.3.3 |
Changed in galera: | |
milestone: | 25.3.3 → 25.3.4 |
no longer affects: | galera/2.x |
Changed in galera: | |
milestone: | 25.3.4 → 25.3.5 |
Changed in galera: | |
milestone: | 25.3.5 → 25.3.6 |
Forgot to mention:
Centos 6.3 version | 2.3(r143) |
Server version: 5.5.29 Percona XtraDB Cluster (GPL), wsrep_23.7.1.r3843
| wsrep_provider_