Skip to content

osdc/Objecter: resend RWORDERED ops on full - #13759

Merged
liewegas merged 3 commits into
ceph:masterfrom
liewegas:wip-19133
Mar 8, 2017
Merged

liewegas merged 3 commits into
ceph:masterfrom
liewegas:wip-19133

Conversation

@liewegas

@liewegas liewegas commented Mar 3, 2017

Copy link
Copy Markdown
Member

Our condition for respecting the FULL flag is complex, and involves
the WRITE | RWORDERED flags vs the FULL_FORCE | FULL_TRY flags. Previously,
we could block a read bc of RWORDRED but not resend it later.

Fix by capturing the complex condition in a respects_full() bool and using
it both for the blocking-on-send and resending-on-possibly-notfull-later
checks.

Fixes: http://tracker.ceph.com/issues/19133

NOTE: the but that actualy cause the failure in that ticket was a jewel
bug where it was missing the backport of 07b2a22; this bug was found by inspection while debugging that one. Both should
get backported to jewel and kraken!

@smithfarm

Copy link
Copy Markdown
Contributor

@liewegas 07b2a22 is already in kraken, though, right?

@liewegas

liewegas commented Mar 3, 2017 via email

Copy link
Copy Markdown
Member Author

Comment thread src/osdc/Objecter.cc Outdated
case RECALC_OP_TARGET_NO_ACTION:
if (!force_resend &&
(!force_resend_writes || !(op->target.flags & CEPH_OSD_FLAG_WRITE)))
if (!force_resend && !(force_send_writes && op->respects_full()))

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.

force_send_writes -> force_resend_writes

@gregsfortytwo gregsfortytwo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed-by: Greg Farnum [email protected]

liewegas added 2 commits March 7, 2017 13:33
Induce a momentarily full cluster.

Signed-off-by: Sage Weil <[email protected]>
Our condition for respecting the FULL flag is complex, and involves
the WRITE | RWORDERED flags vs the FULL_FORCE | FULL_TRY flags.  Previously,
we could block a read bc of RWORDRED but not resend it later.

Fix by capturing the complex condition in a respects_full() bool and using
it both for the blocking-on-send and resending-on-possibly-notfull-later
checks.

Fixes: http://tracker.ceph.com/issues/19133
Signed-off-by: Sage Weil <[email protected]>
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.

5 participants