]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/ConnectionTracker.cc: disregard connection scores from mon_rank = -1
authorKamoltat <ksirivad@redhat.com>
Tue, 2 May 2023 14:17:07 +0000 (14:17 +0000)
committerKamoltat <ksirivad@redhat.com>
Sat, 13 Jan 2024 01:22:30 +0000 (01:22 +0000)
commit3196aaec8edfbd06a1b305a6966ad7c03984d88f
tree4e2f5bc0a5234d92d91cfa43e02688328c357f60
parent40d2601f3d2d86e99884fe93d7c950b3e6c65f4d
mon/ConnectionTracker.cc: disregard connection scores from mon_rank = -1

There are certain situations where we would
come across rank -1 in our MON connection scores;

- New MON sends probe message to existing MON,
existing MON handle probe message by adding -1
to existing peer_scores.

This is not good because we want to implement
a connection scores check mechanism where we
should not have to take into account the possibility
of having rank -1 in our score.

Fixes: https://tracker.ceph.com/issues/59564
Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 6ffc70a1b7f3dbe9237c2379c477d7dc4898024f)
src/mon/ConnectionTracker.cc