Skip to content

mon: elector: return after triggering a new election#32981

Merged
liewegas merged 1 commit intoceph:masterfrom
gregsfortytwo:wip-42977-elector-fix
Jan 31, 2020
Merged

mon: elector: return after triggering a new election#32981
liewegas merged 1 commit intoceph:masterfrom
gregsfortytwo:wip-42977-elector-fix

Conversation

@gregsfortytwo
Copy link
Member

When receiving an old propose, we were correctly triggering a new election
but not then returning out of receive_propose(), so we processed the
"should I defer" logic and perhaps sent out a deferal (in the current epoch!).

Fixes: https://tracker.ceph.com/issues/42977

Signed-off-by: Greg Farnum gfarnum@redhat.com

When receiving an old propose, we were correctly triggering a new election
but not then returning out of receive_propose(), so we processed the
"should I defer" logic and perhaps sent out a deferal (in the current epoch!).

Fixes: https://tracker.ceph.com/issues/42977

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
liewegas added a commit that referenced this pull request Jan 31, 2020
* refs/pull/32981/head:
	mon: elector: return after triggering a new election

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
@liewegas liewegas merged commit 337d12b into ceph:master Jan 31, 2020
@smithfarm
Copy link
Contributor

@liewegas In the tracker Greg mentioned that this should probably be backported to nautilus - do you not agree?

@liewegas
Copy link
Member

@liewegas In the tracker Greg mentioned that this should probably be backported to nautilus - do you not agree?

Oops! I didn't see that comment and assumed this was a new regression from the recent changes. Backport away!

@gregsfortytwo gregsfortytwo deleted the wip-42977-elector-fix branch February 3, 2020 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants