]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: remove stray _finish_hunting() calls
authorSage Weil <sage@inktank.com>
Fri, 2 May 2014 21:48:35 +0000 (14:48 -0700)
committerSage Weil <sage@inktank.com>
Fri, 2 May 2014 22:42:58 +0000 (15:42 -0700)
commit77a6f0aefebebf057f02bfb95c088a30ed93c53f
treed7caf76467b9b691408ffa33ac942291b3d27d78
parent331869a0197f94ab513c61aad4dd58634d9846f1
mon/MonClient: remove stray _finish_hunting() calls

Callig _finish_hunting() clears out the bool hunting flag, which means we
don't retry by connection to another mon periodically.  Instead, we send
keepalives every 10s.  But, since we aren't yet in state HAVE_SESSION, we
don't check that the keepalives are getting responses.  This means that an
ill-timed connection reset (say, after we get a MonMap, but before we
finish authenticating) can drop the monc into a black hole that does not
retry.

Instead, we should *only* call _finish_hunting() when we complete the
authentication handshake.

Fixes: #8278
Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/MonClient.cc