Skip to content

crimson/os/seastore: fix in check_node - #51980

Merged
cyx1231st merged 1 commit into
ceph:mainfrom
aisakaki:wip-fix-check_node
Jun 25, 2023
Merged

cyx1231st merged 1 commit into
ceph:mainfrom
aisakaki:wip-fix-check_node

Conversation

@aisakaki

@aisakaki aisakaki commented Jun 9, 2023

Copy link
Copy Markdown
Contributor

EXIST_CLEAN and EXIST_MUTATION_PENDING shuold not be treated as CLEAN in check_node because they are transaction private and the leafnode has been duplicated for write.

Contribution Guidelines

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
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@cyx1231st

Copy link
Copy Markdown
Member

I think we can merge this as the direct fix to unblock #51179, then scan the other places. If it is reasonable to you @xxhdx1985126

@cyx1231st
cyx1231st requested a review from xxhdx1985126 June 9, 2023 07:48
@aisakaki
aisakaki force-pushed the wip-fix-check_node branch from d845e07 to c46e8bf Compare June 9, 2023 07:54

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.

should we include is_exist_clean() and is_existing_mutation_pending() in is_initial_pending()?

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.

Probably not as is_initial_pending(). But I don't see a good name to group them together.

Or use the following decision tree in the lba implementation, putting them in the else section:

  • is_stable(): CLEAN_PENDING, CLEAN, DIRTY
  • is_pending():
    • is_mutation_pending(): MUTATION_PENDING
    • else: INITIAL_WRITE_PENDING, EXIST_CLEAN, EXIST_MUTATION_PENDING
  • else: !is_valid(): INVALID

What do you think?

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.

Or use the following decision tree in the lba implementation, putting them in the else section:

  • is_stable(): CLEAN_PENDING, CLEAN, DIRTY

  • is_pending():

    • is_mutation_pending(): MUTATION_PENDING
    • else: INITIAL_WRITE_PENDING, EXIST_CLEAN, EXIST_MUTATION_PENDING
  • else: !is_valid(): INVALID

Sorry for the late reply, I think this is fine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@xxhdx1985126 @cyx1231st changed the decision path in new push ~

@cyx1231st

Copy link
Copy Markdown
Member

Still see issues when remap/overwrite extents, might need to block this until it is complete enough to address the issue.

@aisakaki
aisakaki force-pushed the wip-fix-check_node branch from c46e8bf to b98445b Compare June 19, 2023 22:22
@aisakaki

Copy link
Copy Markdown
Contributor Author

Still see issues when remap/overwrite extents, might need to block this until it is complete enough to address the issue.

Confirmed that issues not related to this. Solved in the latest push of PR51179.

@aisakaki

Copy link
Copy Markdown
Contributor Author

jenkins test make check

Comment thread src/crimson/os/seastore/cached_extent.h Resolved
EXIST_CLEAN and EXIST_MUTATION_PENDING shuold not be treated as
CLEAN in check_node because they are transaction private and the
leafnode has been duplicated for write.

fix: https://tracker.ceph.com/issues/61626

Signed-off-by: Xinyu Huang <[email protected]>
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.

3 participants