Revert "ctdb-recoverd: Abort when daemon can take recovery lock during recovery"
authorMartin Schwenke <martin@meltin.net>
Mon, 4 May 2015 05:27:19 +0000 (15:27 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 4 May 2015 08:40:36 +0000 (10:40 +0200)
commit20a7945a2695d7ed811237adde5af6549e53c6e9
treed6e29f0d894b80fbf0e661030adc03d0548d13bf
parent26ad4b368d9b7be12baa28ad62ae6346c4b907ee
Revert "ctdb-recoverd: Abort when daemon can take recovery lock during recovery"

This reverts commit 39d2fd330a60ea590d76213f8cb406a42fa8d680.

An election can occur in the middle of a recovery.  During the
election the recovery master can change.  When a node loses a round of
the election and stops being the recovery master it releases the
recovery lock.  Then at the end of the ongoing recovery all nodes are
able to take the recovery lock so they will all abort.

The most likely cause for a change in recovery master is that several
(all?) nodes are starting up and the "connected-ness" of each node is
a primary factor in winning the election.  In this situation the
recovery master can bounce around the cluster.

The simplest solution is to revert this patch so that the recovery
will fail.  The new recovery master will then start a new recovery.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon May  4 10:40:36 CEST 2015 on sn-devel-104
ctdb/server/ctdb_recover.c