Skip to content

crimson/osd: fix PGBackend::remove() to return ENOENT on no-op deletes - #69415

Merged
ronen-fr merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-clsrefcount
Jun 15, 2026
Merged

ronen-fr merged 1 commit into
ceph:mainfrom
ronen-fr:wip-rf-clsrefcount

Conversation

@ronen-fr

Copy link
Copy Markdown
Contributor

PGBackend::remove() was returning success when asked to delete a non-existent object or an already-whiteout object that must remain a whiteout. The classic OSD returns -ENOENT in both cases. Fix both paths to return ENOENT, and remove the duplicate !os.exists check.

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

PGBackend::remove() was returning success when asked to delete a
non-existent object or an already-whiteout object that must remain
a whiteout. The classic OSD returns -ENOENT in both cases. Fix both
paths to return enoent, and remove the duplicate !os.exists check.

Fixes: https://tracker.ceph.com/issues/76529
Signed-off-by: Ronen Friedman <[email protected]>
@ronen-fr
ronen-fr requested a review from a team as a code owner June 11, 2026 11:39
@ronen-fr
ronen-fr requested review from Matan-B and amathuria June 11, 2026 11:53
@perezjosibm

Copy link
Copy Markdown
Contributor
  • Shaman build (in progress): wip-perezjos-crimson-only-11-06-2026-PR69415

@ronen-fr

Copy link
Copy Markdown
Contributor Author

Merging based on the results of Jose's runs

@ronen-fr
ronen-fr merged commit b77ff53 into ceph:main Jun 15, 2026
6 of 7 checks passed
@Matan-B Matan-B moved this from Needs QA to Merged (Main) in Crimson Jun 15, 2026
@ronen-fr ronen-fr added needs-umbrella-backport This PR should be backported to Umbrella and removed needs-qa needs-crimson-qa wip-perezjos-testing labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix crimson needs-umbrella-backport This PR should be backported to Umbrella

Projects

Status: Merged (Main)

Development

Successfully merging this pull request may close these issues.

3 participants