]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: clear connection score during update & add sanity check live/dead connection...
authorKamoltat <ksirivad@redhat.com>
Fri, 11 Nov 2022 22:56:46 +0000 (22:56 +0000)
committerKamoltat <ksirivad@redhat.com>
Fri, 9 Dec 2022 15:43:45 +0000 (15:43 +0000)
commit767a4be12d64c42f5857cf390bb1d868cab96c72
tree0dc8d35db20cfdbcadcdea82257d86b9608d2ca3
parent8efc19911baecf09e7c5a144658c9ccfa8e1aa4e
mon: clear connection score during update & add sanity check live/dead connection report

When upgrading the monitors (include booting up),
we check if `peer_tracker` is dirty or not. If
so, we clear it. Added some functions in `Elector` and
`ConnectionTracker` class to
check for clean `peer_tracker`.

Moreover, there could be some cases where due
to startup weirdness or abnormal circumstances,
we might get a report from our own rank. Therefore,
it doesn't hurt to add a sanity check in
`ConnectionTracker::report_live_connection` and
`ConnectionTracker::report_dead_connection`.

Fixes: https://tracker.ceph.com/issues/58049
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/mon/ConnectionTracker.cc
src/mon/ConnectionTracker.h
src/mon/Elector.cc
src/mon/Elector.h
src/mon/Monitor.cc