Repository navigation
osdc/Objecter: resend RWORDERED ops on full - #13759
Merged
Merged
Conversation
Contributor
Member
Author
|
looks like it, yeah
|
LiumxNL
reviewed
Mar 6, 2017
| 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())) |
Contributor
There was a problem hiding this comment.
force_send_writes -> force_resend_writes
gregsfortytwo
approved these changes
Mar 6, 2017
gregsfortytwo
left a comment
Member
There was a problem hiding this comment.
Reviewed-by: Greg Farnum [email protected]
jdurgin
approved these changes
Mar 7, 2017
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]>
Signed-off-by: Sage Weil <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!