Skip to content

osd/scrub: do not start scrubbing if the PG is snap-trimming#46440

Merged
ronen-fr merged 1 commit intoceph:mainfrom
ronen-fr:wip-rf-scrub-trimisbad
Jun 7, 2022
Merged

osd/scrub: do not start scrubbing if the PG is snap-trimming#46440
ronen-fr merged 1 commit intoceph:mainfrom
ronen-fr:wip-rf-scrub-trimisbad

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

@github-actions github-actions bot added the core label May 31, 2022
@ronen-fr ronen-fr requested review from aclamk, athanatos and pdvian May 31, 2022 07:33
@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 force-pushed the wip-rf-scrub-trimisbad branch from b157eb7 to 0a6156f Compare May 31, 2022 15:18
@ronen-fr ronen-fr requested a review from a team as a code owner May 31, 2022 15:18
@ljflores
Copy link
Member

jenkins test api

Copy link
Member

@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

Development

Successfully merging this pull request may close these issues.

6 participants