Skip to content

osd: Ensure append_delete is called before add_entry in generate_tran… - #71685

Merged
SrinivasaBharath merged 1 commit into
ceph:mainfrom
MattyWilliams22:wip-ec-omaps-delete-order
Sep 18, 2026
Merged

SrinivasaBharath merged 1 commit into
ceph:mainfrom
MattyWilliams22:wip-ec-omaps-delete-order

Conversation

@MattyWilliams22

@MattyWilliams22 MattyWilliams22 commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

When an object is replaced, the append_delete was wiping the omap updates from the journal that should be applied to the object after the delete. I have changed this so the primary does append_delete in generate_transactions, and not in handle_sub_write. I also stopped append_delete being called on non-primary-capable shards.

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

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

This bug was first encountered in:
/a/skanta-2026-07-28_02:50:14-rados-wip-bharath2-testing-20260727.155959-main-distro-default-trial/402756

I have run a set of teuthology jobs with a similar description with this fix applied:
/a//mattywilliams-2026-09-10_14:49:07-rados:thrash-erasure-code-isa-main-distro-default-trial

All the jobs passed.

@MattyWilliams22
MattyWilliams22 marked this pull request as ready for review September 11, 2026 12:50
@MattyWilliams22
MattyWilliams22 requested a review from a team as a code owner September 11, 2026 12:50

@aainscow aainscow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath19-testing-20260915.234926-main.

@bill-scales bill-scales left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

…sactions

When an object is replaced, the append_delete was wiping the omap updates from the journal that should be applied to the object after the delete.
I have changed this so the primary does append_delete in generate_transactions, and not in handle_sub_write.
I also stopped append_delete being called on non-primary-capable shards.

Fixes: https://tracker.ceph.com/issues/80449
Signed-off-by: Matty Williams <[email protected]>
Assisted-by: IBM-Bob-2.1.0:Claude/GPT
@MattyWilliams22
MattyWilliams22 force-pushed the wip-ec-omaps-delete-order branch from 54cef1b to 8e60553 Compare September 16, 2026 15:15
@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

This force push updated the commit message to reference the correct tracker ticket.
No code changes were made.

@MattyWilliams22

Copy link
Copy Markdown
Contributor Author

@SrinivasaBharath
SrinivasaBharath merged commit 2fc3f99 into ceph:main Sep 18, 2026
14 checks passed
@MattyWilliams22
MattyWilliams22 deleted the wip-ec-omaps-delete-order branch September 18, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants