Skip to content

mon: mark manager beacons as no_reply - #20467

Merged
liewegas merged 1 commit into
ceph:masterfrom
gregsfortytwo:wip-22114-beacon-blocking
Feb 21, 2018
Merged

liewegas merged 1 commit into
ceph:masterfrom
gregsfortytwo:wip-22114-beacon-blocking

Conversation

@gregsfortytwo

@gregsfortytwo gregsfortytwo commented Feb 16, 2018 •

Copy link
Copy Markdown
Member

We never reply to manager beacons, and we have to mark them
that way or else forwarded messages pile up pending replies
and things eventually block.

Fixes: http://tracker.ceph.com/issues/22114
Reported-by: Hongpeng Lu [email protected]

Signed-off-by: Greg Farnum [email protected]

@gregsfortytwo

Copy link
Copy Markdown
Member Author

I'm a bit confused this didn't turn up in our nightlies, but perhaps they don't run long enough to cause trouble?

@jecluis

jecluis commented Feb 17, 2018

Copy link
Copy Markdown
Member

@gregsfortytwo it usually takes a while for things to pile up enough so the monitors block, and we may not be reaching that stage during nightlies. One thing that could potentially be done to flush out this kind of behavior would be a test checking for long running ops on the cluster upon shutdown, but I'm wary of that as we could end up with a lot of false positives.

@tchaikov

Copy link
Copy Markdown
Contributor

retest this please.

Comment thread src/mon/MgrMonitor.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/home/jenkins-build/build/workspace/ceph-pull-requests/src/mon/MgrMonitor.cc: In member function 'bool MgrMonitor::preprocess_beacon(MonOpRequestRef)':
/home/jenkins-build/build/workspace/ceph-pull-requests/src/mon/MgrMonitor.cc:270:3: error: 'no_reply' was not declared in this scope
   no_reply(op); // we never reply to beacons
   ^~~~~~~~

might want to put something like

mon->no_reply(op);  // we never reply to beacons

instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol whoops I’ll get that in the (my) morning. Thanks!

Also considering the testing options @jecluis pointed out.

@gregsfortytwo
gregsfortytwo force-pushed the wip-22114-beacon-blocking branch from 57190c8 to a550591 Compare February 19, 2018 17:31
@gregsfortytwo

Copy link
Copy Markdown
Member Author

Should be fixed now.

We never reply to manager beacons, and we have to mark them
that way or else forwarded messages pile up pending replies
and things eventually block.

Fixes: http://tracker.ceph.com/issues/22114
Reported-by: Hongpeng Lu <[email protected]>

Signed-off-by: Greg Farnum <[email protected]>
@gregsfortytwo
gregsfortytwo force-pushed the wip-22114-beacon-blocking branch from a550591 to 57ecc1e Compare February 19, 2018 17:35
@gregsfortytwo

Copy link
Copy Markdown
Member Author

@oleg-glushak

Copy link
Copy Markdown

As mentioned here: http://tracker.ceph.com/issues/22114 we also have the same issue with OSD_BEACONs. Will this fix resolve issue with stuck OSD_BEACONs?

@jecluis

jecluis commented Feb 21, 2018

Copy link
Copy Markdown
Member

@oleg-glushak no, this one is only addressing the mgr beacons.

@liewegas
liewegas merged commit 57ecc1e into ceph:master Feb 21, 2018
liewegas added a commit that referenced this pull request Feb 21, 2018
* refs/pull/20467/head:
	mon: mark manager beacons as no_reply

Reviewed-by: John Spray <[email protected]>
Reviewed-by: Kefu Chai <[email protected]>
Reviewed-by: João Eduardo Luís <[email protected]>
@gregsfortytwo
gregsfortytwo deleted the wip-22114-beacon-blocking branch February 21, 2018 18:04
@gregsfortytwo

gregsfortytwo commented Feb 21, 2018 •

Copy link
Copy Markdown
Member Author

Oh, here's a new PR for those two @jecluis, @oleg-glushak. Thanks for pointing out I'd missed that!

#20517

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.

6 participants