]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: discover mon addrs, names during election state too
authorSage Weil <sage@inktank.com>
Wed, 28 Aug 2013 16:50:11 +0000 (09:50 -0700)
committerSage Weil <sage@inktank.com>
Fri, 30 Aug 2013 16:42:25 +0000 (09:42 -0700)
commit625f13ee0d6cca48d61dfd65e00517d092552d1c
tree1ea6b5b59f158e7f2ef13b478bce26be5a4b76bb
parent83cfd4386c1fd0fa41aea345704e27f82b524ece
mon: discover mon addrs, names during election state too

Currently we only detect new mon addrs and names during the probing phase.
For non-trivial clusters, this means we can get into a sticky spot when
we discover enough peers to form an quorum, but not all of them, and the
undiscovered ones are enough to break the mon ranks and prevent an
election.

One way to work around this is to continue addr and name discovery during
the election.  We should also consider making the ranks less sensitive to
the undefined addrs; that is a separate change.

Fixes: #4924
Backport: dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
Tested-by: Bernhard Glomm <bernhard.glomm@ecologic.eu>
(cherry picked from commit c24028570015cacf1d9e154ffad80bec06a61e7c)
src/mon/Monitor.cc