diff options
author | Kamoltat <ksirivad@redhat.com> | 2023-10-11 23:08:19 +0200 |
---|---|---|
committer | Kamoltat <ksirivad@redhat.com> | 2023-10-11 23:08:19 +0200 |
commit | 17bd0c6aca24a8d10b1f346462d6df2e29afd80e (patch) | |
tree | 33f798771411314c804436ad49aacd943edaa2da /src/mon/ElectionLogic.cc | |
parent | Merge pull request #53846 from cbodley/wip-62989-again (diff) | |
download | ceph-17bd0c6aca24a8d10b1f346462d6df2e29afd80e.tar.xz ceph-17bd0c6aca24a8d10b1f346462d6df2e29afd80e.zip |
src/mon: Added more loggings for disallowed_leaders
Added more loggings regarding the disallowed_leaders
set so that it is easier to debug problems like:
https://tracker.ceph.com/issues/63183
Fixes: https://tracker.ceph.com/issues/63183
Signed-off-by: Kamoltat <ksirivad@redhat.com>
Diffstat (limited to 'src/mon/ElectionLogic.cc')
-rw-r--r-- | src/mon/ElectionLogic.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mon/ElectionLogic.cc b/src/mon/ElectionLogic.cc index e22a85bed56..0c1b30c417c 100644 --- a/src/mon/ElectionLogic.cc +++ b/src/mon/ElectionLogic.cc @@ -398,7 +398,8 @@ void ElectionLogic::propose_connectivity_handler(int from, epoch_t mepoch, ldout(cct, 10) << "propose from rank=" << from << ",from_score=" << from_score << "; my score=" << my_score << "; currently acked " << leader_acked - << ",leader_score=" << leader_score << dendl; + << ",leader_score=" << leader_score + << ",disallowed_leaders=" << elector->get_disallowed_leaders() << dendl; bool my_win = (my_score >= 0) && // My score is non-zero; I am allowed to lead ((my_rank < from && my_score >= from_score) || // We have same scores and I have lower rank, or |