Comment 3 for bug 1774960

Revision history for this message
Stuart Bishop (stub) wrote :

The uniter keeps renewing the lease, and the unit remains leader despite being in an error state.

For this case, I don't think it matters if the lease is lost immediately after going into an error state, or if it expires at the end of the current lease period. It is perfectly acceptable for there to be no-leader at all until the lease expires and another unit picks it up.

Bug #1532085 is a similar issue (a departing unit remains leader), and its needs might drive how this bug is approached. In that bug's case, leadership needs to be lost before before the peer relation-departed and other teardown hooks are kicked off.