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/scrub: do not start scrubbing if the PG is snap-trimming #46440

Merged
merged 1 commit into from Jun 7, 2022

Conversation

ronen-fr
Copy link
Contributor

@ronen-fr ronen-fr commented May 31, 2022

Both 'snap-trim' and 'snaptrim-wait' PG states will now prevent
scrub from starting.

Fixes: https://tracker.ceph.com/issues/49525

Signed-off-by: Ronen Friedman rfriedma@redhat.com

@ronen-fr
Copy link
Contributor Author

ronen-fr commented May 31, 2022

--- Will modify the commit message to include the reason for not allowing snaps being removed underneath a running scrub. ---

Done.

@ronen-fr ronen-fr requested a review from a team as a code owner May 31, 2022 15:18
@ljflores
Copy link
Contributor

jenkins test api

Copy link
Contributor

@ljflores ljflores left a comment

Choose a reason for hiding this comment

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

Is this issue already tracked in https://tracker.ceph.com/issues/49525? Otherwise, LGTM

@ronen-fr
Copy link
Contributor Author

ronen-fr commented Jun 1, 2022

"Is this issue already tracked in https://tracker.ceph.com/issues/49525? Otherwise, LGTM"
@ljflores - yes, it is. Thanks.

@ronen-fr
Copy link
Contributor Author

ronen-fr commented Jun 1, 2022

@neha-ojha - candidate for Quincy backport?

Both 'snap-trim' and 'snaptrim-wait' PG states now prevent
scrub from starting.

Background:
A PG should not be scrubbed and trimmed concurrently. Unlike
write operations, snap trimming does not verify that a targeted
object is not in the executing scrub's chunk.
The trimmer always checked for active scrubs before starting. The
scrubber - did not. This PR fixes that omission.

Fixes: https://tracker.ceph.com/issues/49525

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
@neha-ojha
Copy link
Member

@neha-ojha - candidate for Quincy backport?

yes, https://tracker.ceph.com/issues/49525 was reported a more than a year ago, worth checking if pacific also needs the fix

@ronen-fr
Copy link
Contributor Author

ronen-fr commented Jun 2, 2022

@neha-ojha - candidate for Quincy backport?

yes, https://tracker.ceph.com/issues/49525 was reported a more than a year ago, worth checking if pacific also needs the fix

The problem surely exists in Pacific. Actually - as far as I checked, the same omission exists in the original scrub code.

@ronen-fr ronen-fr added the needs-quincy-backport backport required for quincy label Jun 2, 2022
@ronen-fr
Copy link
Contributor Author

ronen-fr commented Jun 7, 2022

Merging based on http://pulpito.front.sepia.ceph.com/yuriw-2022-06-01_23:19:00-rados-wip-yuri8-testing-2022-06-01-1114-distro-default-smithi.
No related issues.
Will follow with detailed list.

@rzarzynski
Copy link
Contributor

Looks the quincy backport is: #46498.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants