Skip to content

crimson/os/seastore/omap_manager: handle the cases in which omap nodes are rewritten before seen by users - #63376

Merged
cyx1231st merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-seastore-omap-root-fix
May 27, 2025
Merged

cyx1231st merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-seastore-omap-root-fix

Conversation

@xxhdx1985126

@xxhdx1985126 xxhdx1985126 commented May 20, 2025 •

Copy link
Copy Markdown
Member

So that whether the omap node is root can be determined at the time of extent load

Fixes: https://tracker.ceph.com/issues/71383
Signed-off-by: Xuehan Xu [email protected]

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

@cyx1231st

Copy link
Copy Markdown
Member

I think, instead of making is_root persistent to address the assert failure, probably it's more reasonable to handle p-c only when the extent is is_seen_by_users() (i.e. was user initialized) ?

The omap root node is also expected to be linked in the future the same way, so I can't think of a reason to make is_root persistent in the long term.

@xxhdx1985126

Copy link
Copy Markdown
Member Author

I think, instead of making is_root persistent to address the assert failure, probably it's more reasonable to handle p-c only when the extent is is_seen_by_users() (i.e. was user initialized) ?

The omap root node is also expected to be linked in the future the same way, so I can't think of a reason to make is_root persistent in the long term.

Yeah, will do

@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-omap-root-fix branch from 5dc86f4 to 7a9db3d Compare May 21, 2025 06:18
@xxhdx1985126

Copy link
Copy Markdown
Member Author

@cyx1231st Just modified the pr as suggested, please take a look, thanks:-)

@cyx1231st cyx1231st left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM except for minor comments.

@xxhdx1985126 xxhdx1985126 changed the title crimson/os/seastore/omap_manager: add is_root to the omap node meta crimson/os/seastore/omap_manager: handle the cases in which omap nodes are rewritten before seen by users May 21, 2025
@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-omap-root-fix branch from 7a9db3d to 9a2d281 Compare May 23, 2025 10:01
@xxhdx1985126

xxhdx1985126 commented May 23, 2025 •

Copy link
Copy Markdown
Member Author

All done:-)

@cyx1231st
cyx1231st merged commit 8aeb90f into ceph:main May 27, 2025
@cyx1231st cyx1231st moved this from Awaits review to Tentacle Open Backports in Crimson May 27, 2025
@Matan-B Matan-B moved this from Tentacle Open Backports to Merged (Main) in Crimson May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged (Pre Umbrella cutoff)

Development

Successfully merging this pull request may close these issues.

2 participants