documentation incorrectly states wsrep_recover will assign the recovered position for server start

Bug #1112727 reported by Jay Janssen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Fix Committed
Medium
Raghavendra D Prabhu

Bug Description

http://www.percona.com/doc/percona-xtradb-cluster/wsrep-index.html#wsrep_recover

States:

When server is started with this variable it will parse Global Transaction ID from log, and if the GTID is found, assign it as initial position for actual server start. This option is used to recover GTID.

AFAICT, the GTID is only outputted, it is not assigned to the grastate.dat. That must be done either by editing the grastate.dat or by using --wsrep_start_position

Tags: doc
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

The old link seems to be gone.

The new link is:
http://www.percona.com/doc/percona-xtradb-cluster/wsrep-system-index.html

Yes, it outputs only the GTID.

tags: added: doc
Changed in percona-xtradb-cluster:
status: New → Confirmed
Revision history for this message
Jay Janssen (jay-janssen) wrote :

Ok, I take this bug back (at least how I originally thought of it). Given a node that I kill -9'ed. On restart, the recover step is correctly setting the start position automatically:

130302 06:48:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
130302 06:48:55 mysqld_safe WSREP: Running position recovery with --log_error=/tmp/tmp.mwI4iVaIvz
130302 06:49:01 mysqld_safe WSREP: Recovered position 8797f811-7f73-11e2-0800-8b513b3819c1:314673
130302 6:49:01 [Note] WSREP: wsrep_start_position var submitted: '8797f811-7f73-11e2-0800-8b513b3819c1:314673'

130302 6:49:01 [Note] WSREP: Found saved state: 8797f811-7f73-11e2-0800-8b513b3819c1:-1

130302 6:49:01 [Note] WSREP: Start replication130302 6:49:01 [Note] WSREP: Setting initial position to 8797f811-7f73-11e2-0800-8b513b3819c1:314673

Changed in percona-xtradb-cluster:
assignee: nobody → Hrvoje Matijakovic (hrvojem)
status: Confirmed → Triaged
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Updated appropriately.

Changed in percona-xtradb-cluster:
assignee: Hrvoje Matijakovic (hrvojem) → Raghavendra D Prabhu (raghavendra-prabhu)
status: Triaged → Fix Committed
Changed in percona-xtradb-cluster:
importance: Undecided → Medium
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1052

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.