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: fix negative degraded objects during backfilling #4021

Merged
1 commit merged into from Mar 20, 2015

Conversation

Projects
None yet
2 participants
@liewegas
Member

liewegas commented Mar 16, 2015

http://tracker.ceph.com/issues/7737

When there is deleting requests during backfilling, the reported number of degraded
objects could be negative, as the primary's num_objects is the latest (locally) but
the number for replicas might not reflect the deletings. A simple fix is to ignore
the negative subtracted value.

Signed-off-by: Guang Yang yguang@yahoo-inc.com
(cherry picked from commit 14d7e36)

Conflicts:
src/osd/PG.cc

osd: fix negative degraded objects during backfilling
When there is deleting requests during backfilling, the reported number of degraded
objects could be negative, as the primary's num_objects is the latest (locally) but
the number for replicas might not reflect the deletings. A simple fix is to ignore
the negative subtracted value.

Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
(cherry picked from commit 14d7e36)

Conflicts:
	src/osd/PG.cc

@liewegas liewegas added this to the firefly milestone Mar 17, 2015

@liewegas liewegas assigned ghost Mar 17, 2015

@liewegas liewegas added the core label Mar 17, 2015

@loic-bot

This comment has been minimized.

loic-bot commented Mar 17, 2015

SUCCESS: the output of run-make-check.sh on centos-7 for 0ab4aad is http://paste2.org/4NXUwpvv

:octocat: Sent from GH.

ghost pushed a commit that referenced this pull request Mar 20, 2015

Merge pull request #4021 from ceph/wip-7737-firefly
osd: fix negative degraded objects during backfilling

Reviewed-by: Sage Weil <sage@redhat.com>

@ghost ghost merged commit c1c20d8 into firefly Mar 20, 2015

@liewegas liewegas deleted the wip-7737-firefly branch Nov 23, 2016

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment