forked from ceph/ceph
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mon: MMonProbe: direct MMonJoin messages to the leader, instead of th…
…e first mon When monitors are joining a cluster, they may send an MMonJoin message to place themselves correctly in the map in either handle_probe_reply() or finish_election(). These messages must be sent to the leader -- monitors do not forward each other's messages. Unfortunately, this scenario was missed when converting the monitors to support connectivity-based elections, and they're sending these messages to quorum.begin(). Fix this by including an explicit leader in MMonProbe (that the new monitor may reference in handle_probe_reply) and using the leader value in both locations. Fixes: https://tracker.ceph.com/issues/50345 Signed-off-by: Greg Farnum <gfarnum@redhat.com>
- Loading branch information
1 parent
05861ca
commit ffa7ff3
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters