Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osd/ReplicatedPG: do not evict blocked objects #2363

Merged
merged 1 commit into from Sep 2, 2014
Merged

Conversation

liewegas
Copy link
Member

If the object is blocked, that means we are either still promoting it, or we
are in the process of doing a blocking flush. In both cases, do not evict it
just yet. For the promotion case in particular this can cause a very long op
delay because we'll have to restart the promotion, and this can potentially
loop indefinitely.

For the flush case, flushes are generally only blocking when the user
explicitly requests it. In that case, we are not particularly concerned that
we may delay the objects eventual eviction as the user is probably
controlling that anyway (and even if they aren't, the agent will still try
this object again later).

Fixes: #9285 Reported-by: Wang, Zhiqiang zhiqiang.wang@intel.com
Signed-off-by: Sage Weil sage@redhat.com

If the object is blocked, that means we are either still promoting it, or
we are in the process of doing a blocking flush.  In both cases, do not
evict it just yet.  For the promotion case in particular this can cause a
very long op delay because we'll have to restart the promotion, and this
can potentially loop indefinitely.

For the flush case, flushes are generally only blocking when the user
explicitly requests it.  In that case, we are not particularly concerned
that we may delay the objects eventual eviction as the user is probably
controlling that anyway (and even if they aren't, the agent will still
try this object again later).

Fixes: #9285
Reported-by: Wang, Zhiqiang <zhiqiang.wang@intel.com>
Signed-off-by: Sage Weil <sage@redhat.com>
athanatos pushed a commit that referenced this pull request Sep 2, 2014
osd/ReplicatedPG: do not evict blocked objects

Reviewed-by: Samuel Just <sam.just@inktank.com>
@athanatos athanatos merged commit 299f28b into master Sep 2, 2014
@athanatos athanatos deleted the wip-9285 branch September 2, 2014 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants