]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: bootstrap on timeout 1485/head
authorSage Weil <sage@inktank.com>
Sat, 15 Feb 2014 16:59:51 +0000 (08:59 -0800)
committerJoao Eduardo Luis <jecluis@gmail.com>
Mon, 17 Mar 2014 15:43:53 +0000 (15:43 +0000)
commitbdd96c620f33fb8f48f30f8d543af3290e6c934a
tree4b08e611b7526ddc00567eabbf3f20c1c4d13d33
parent68fcc63c0423a2071b7b944ea6c3448282a78a09
mon/Elector: bootstrap on timeout

Currently if an election times out we call a new
election.  If we have never joined a quorum, bootstrap
instead. This is heavier weight, but captures the case
where, during bootstrap:

 - a and b have learned each others' addresses
 - everybody calls an election
 - a and b form a quorum
 - c loops trying to call an election, but is ignored
   because a and b don't see its address in the monmap

See logs:
  ubuntu@teuthology:/var/lib/teuthworker/archive/sage-2014-02-14_13:50:04-ceph-deploy-wip-7212-sage-b-testing-basic-plana/83194

Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit a4bcb1f8129a4ece97bd3419abf1ff45d260ad8e)
(cherry picked from commit 143ec0281aa8b640617a3fe19a430248ce3b514c)
src/mon/Elector.cc