]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/monc: discard active/pending connections when reopening
authorIlya Dryomov <idryomov@gmail.com>
Tue, 23 Mar 2021 09:40:18 +0000 (10:40 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 26 Mar 2021 13:36:47 +0000 (14:36 +0100)
commit2edf4f568ddb2fdb5c702e36fec5e05450719e6b
treead2d7ddf0e1a63fa4ce20a4bcb08f0fa26c4152c
parent5a35a3f5b737f3e8af049747a45d530fa00e824b
crimson/monc: discard active/pending connections when reopening

Otherwise pending_conns vector just keeps growing with redundant
connections all trying to reach the same set of monitors.  When one
of the attempts finally succeeds, _finish_auth() will pick the first
connection with a matching entity_addr_t, designate it as active and
close all others.  The match is very likely to be wrong and hence the
actual authenticated connection gets closed, leaving the OSD with
a bogus active_con and no monitor session.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/crimson/mon/MonClient.cc