]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/Elector: bootstrap on timeout 1250/head
authorSage Weil <sage@inktank.com>
Sat, 15 Feb 2014 16:59:51 +0000 (08:59 -0800)
committerSage Weil <sage@inktank.com>
Sat, 15 Feb 2014 16:59:51 +0000 (08:59 -0800)
commitcf4f7027e7a05090d3d1c14f2ac4db73bf1d8fa4
tree83449f5a29b91190f5c1b0dca845d79b3e2408ec
parent4595c44ba1754a384f41f54606ad6fca47e9c652
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>
src/mon/Elector.cc