Skip to content

crimson/os/seastore: cleanup and use LBAMapping::is_stable() - #55888

Merged
cyx1231st merged 2 commits into
ceph:mainfrom
myoungwon:wip-seastore-cleanup-is-stable-fix
Mar 8, 2024
Merged

cyx1231st merged 2 commits into
ceph:mainfrom
myoungwon:wip-seastore-cleanup-is-stable-fix

Conversation

@myoungwon

Copy link
Copy Markdown
Member

#54326

Signed-off-by: Yingxin Cheng [email protected]
Signed-off-by: Myoungwon Oh [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
  • 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
  • jenkins test rook e2e

@myoungwon
myoungwon requested a review from a team as a code owner March 2, 2024 09:02

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I believe that the existing test case might not be accurate against this commit.
In the multiple_remap test case, a extent (0 ~ 128 << 10) is initially written. Subsequently, five extents with distinct ranges are overwritten. So, in the existing case, the assert is correct if there are five mappings after the transaction is done. But, it is not correct with this commit because four writes after the initial write are merged into the extent currently being processed---please note that the initial write generates three mapping ranges. This results in only three mapping ranges remaining after the transaction is done.

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.

Hm, interesting to see that the adjustment is reflected in the UT.

I think the new mapping result is more approriate than the previous one according to my another comment "overwriting a pending extent shouldn't involve remapping".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think we need to determine whether an unstable pin can be remapped or not. The test_remap_pin test case involves multiple remaps within a single transaction. This leads to a failure in the second remap attempt.

@cyx1231st cyx1231st Mar 4, 2024 •

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.

Thanks for the investigation!

For the real (non-test) use case, overwriting a pending extent shouldn't involve remapping -- it is better for data to be overwritten in the pending buffer directly. IIUC this is why this ceph-assert was added initially. Also refer to the decision made in overwrite_plan_t.

So, probably we can just drop this ceph-assert (and merge all into 1 commit) as testing remapping pending extents doesn't look unreasonable to me.

@myoungwon

Copy link
Copy Markdown
Member Author

@cyx1231st Can you take a look?

@cyx1231st cyx1231st Mar 5, 2024 •

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.

See #55888 (comment)

This assert looks less meaningful, how about replacing it by a comment?

// The according extent might be stable or 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.

Forget to drop the ceph-assert?

@myoungwon
myoungwon force-pushed the wip-seastore-cleanup-is-stable-fix branch from 6df7304 to 94d02ce Compare March 5, 2024 08:15
@myoungwon
myoungwon force-pushed the wip-seastore-cleanup-is-stable-fix branch from 94d02ce to 3c7ef1b Compare March 5, 2024 09:30
@myoungwon

Copy link
Copy Markdown
Member Author

jenkins test make check

2 similar comments
@myoungwon

Copy link
Copy Markdown
Member Author

jenkins test make check

@cyx1231st

Copy link
Copy Markdown
Member

jenkins test make check

@cyx1231st

cyx1231st commented Mar 7, 2024 •

Copy link
Copy Markdown
Member

Hm, most of the seastar related tests are timed out, the logs were stopped at

ARNING: debug mode. Not for benchmarking or production
WARN  2024-03-06 10:31:52,717 seastar - Seastar compiled with default allocator, --memory option won't take effect
INFO  2024-03-06 10:31:52,723 seastar - Reactor backend: io_uring
INFO  2024-03-06 10:31:52,724 seastar - Perf-based stall detector creation failed (EACCESS), try setting /proc/sys/kernel/perf_event_paranoid to 1 or less to enable kernel backtraces: falling back to posix timer.

@cyx1231st

Copy link
Copy Markdown
Member

jenkins test make check

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.

2 participants