]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: force election epoch bump on start
authorSage Weil <sage@redhat.com>
Tue, 8 Aug 2017 22:43:22 +0000 (18:43 -0400)
committerSage Weil <sage@redhat.com>
Thu, 10 Aug 2017 16:22:49 +0000 (12:22 -0400)
commit7b2c0000ef1e8bce3dd2af5c5d1795e14efde1ee
tree530cfa47f9b3daec654a9ff1ddf1e53044d3ed9d
parentea8ca9640e12a21060150d3dff6f73bf5fa819c4
mon/Elector: force election epoch bump on start

We are generally careful when bumping the epoch so that we can join
existing rounds.  However, if we restart in the middle of an election,
and change versions, we need to be certain that our previous ACK (as
$version - 1) isn't accepted as truth for the restarted daemon (running
$version) keeping the same epoch.

The conservatism with bumping is to avoid spurious election cycles, but
mon restarts are more rare, and we need them here.

Fixes: http://tracker.ceph.com/issues/20949
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit ef425374250014393c1d432a3eda95179bb70537)
src/mon/Elector.cc