Skip to content

crimson/osd/pg: properly propagate snap mapper updates and do clean-region-based clone objects recovery - #58868

Merged
Matan-B merged 15 commits into
ceph:mainfrom
xxhdx1985126:wip-crimson-clean_region-based-clone-recovery
Sep 10, 2024
Merged

Matan-B merged 15 commits into
ceph:mainfrom
xxhdx1985126:wip-crimson-clean_region-based-clone-recovery

Conversation

@xxhdx1985126

Copy link
Copy Markdown
Member

This is a POC draft.

Fixes: https://tracker.ceph.com/issues/67057
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
  • 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

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@xxhdx1985126
xxhdx1985126 force-pushed the wip-crimson-clean_region-based-clone-recovery branch 2 times, most recently from e694ef2 to bf59e30 Compare July 29, 2024 05:41
@xxhdx1985126
xxhdx1985126 marked this pull request as ready for review July 29, 2024 05:41
@xxhdx1985126
xxhdx1985126 requested a review from a team as a code owner July 29, 2024 05:41
@xxhdx1985126 xxhdx1985126 changed the title crimson/osd/pg: properly propagate snap mapper updates and do cleanr-region-based clone objects recovery crimson/osd/pg: properly propagate snap mapper updates and do clean-region-based clone objects recovery Jul 29, 2024
@xxhdx1985126

Copy link
Copy Markdown
Member Author

jenkins test make check

@athanatos

athanatos commented Aug 7, 2024 •

Copy link
Copy Markdown
Contributor

I think this is mostly right. I'd like to try to avoid using interruptor::async in the fast path, though. I'd started on a refactor you might be able to use directly instead of your last commit (https://github.com/athanatos/ceph/tree/sjust/wip-67057-snapmapper)?

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.

const pg_missing_item & probably?

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.

yeah, sorry, will correct it.

@xxhdx1985126

Copy link
Copy Markdown
Member Author

I think this is mostly right. I'd like to try to avoid using interruptor::async in the fast path, though. I'd started on a refactor you might be able to use directly instead of your last commit (https://github.com/athanatos/ceph/tree/sjust/wip-67057-snapmapper)?

Thanks:-) I'll drop my last commit.

@xxhdx1985126

Copy link
Copy Markdown
Member Author

@xxhdx1985126

Copy link
Copy Markdown
Member Author

256 - unittest-seastar-calc-subsets (Subprocess aborted)

Sorry, I didn't notice this build error, will fix it.

@xxhdx1985126 xxhdx1985126 reopened this Aug 7, 2024
@athanatos

Copy link
Copy Markdown
Contributor

@xxhdx1985126 Yeah, you can cherry-pick them over if they seem ok to you.

@xxhdx1985126
xxhdx1985126 force-pushed the wip-crimson-clean_region-based-clone-recovery branch 2 times, most recently from a6ec2a2 to a03371d Compare August 7, 2024 11:04
@github-actions github-actions Bot added the tests label Aug 7, 2024
@xxhdx1985126

Copy link
Copy Markdown
Member Author

jenkins test make check

@xxhdx1985126
xxhdx1985126 force-pushed the wip-crimson-clean_region-based-clone-recovery branch from a03371d to fbdadbb Compare August 16, 2024 11:23
@xxhdx1985126 xxhdx1985126 removed the DNM label Aug 16, 2024
@xxhdx1985126

Copy link
Copy Markdown
Member Author

jenkins test make check

@Matan-B

Matan-B commented Sep 8, 2024

Copy link
Copy Markdown
Contributor

osds unable to start, looking into this

Last commit should handle this

@Matan-B

Matan-B commented Sep 8, 2024

Copy link
Copy Markdown
Contributor

jenkins test make check

Matan-B and others added 7 commits September 9, 2024 09:38
We should be carful with using capturing lambdas with coroutines.
Avoid capturing [this] by passing process_and_submit instead.

See: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rcoro-capture

Signed-off-by: Matan Breizman <[email protected]>
Since we now co_await mut_func, we should not pass it by rvalue ref.

```
DEBUG 2024-09-01 15:54:46,212 [shard 0:main] osd - do_osd_ops_execute: object 2:c4c92e5a:::rbd_trash:head submitting txn
=================================================================
==17416==ERROR: AddressSanitizer: stack-use-after-return on address 0x7f590008a430 at pc 0x0000040a367a bp 0x7ffc0b1d5ff0 sp 0x7ffc0b1d5fe0
Address 0x7f590008a430 is located in stack of thread T0 at offset 48 in frame
    #0 0x40b0a2b in crimson::osd::PG::do_osd_ops_execute ... lambda(std::error_code const&)#1}&&)::{lambda()#1}::operator()() const (/usr/bin/ceph-osd+0x40b0a2b)
```

Co-authored-by: Xuehan Xu <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-crimson-clean_region-based-clone-recovery branch from 924491c to 0d37bc9 Compare September 9, 2024 09:39
@Matan-B

Matan-B commented Sep 9, 2024

Copy link
Copy Markdown
Contributor

jenkins test make check

@Matan-B

Matan-B commented Sep 9, 2024

Copy link
Copy Markdown
Contributor

@Matan-B
Matan-B merged commit e837655 into ceph:main Sep 10, 2024
Matan-B added a commit to xxhdx1985126/ceph that referenced this pull request Sep 10, 2024
Since ceph#58868, snap map updates
are now maintained via PG::update_snap_map.

Signed-off-by: Matan Breizman <[email protected]>
Matan-B added a commit to ceph/ceph-ci that referenced this pull request Sep 11, 2024
Since ceph/ceph#58868, snap map updates
are now maintained via PG::update_snap_map.

Signed-off-by: Matan Breizman <[email protected]>
(cherry picked from commit 5f26048)
Matan-B added a commit to Matan-B/ceph that referenced this pull request Sep 11, 2024
ceph#58868 introduced
SnapMapper::update_snap_map to be used both by
Crimson and Classic.
No change in behavior.

Signed-off-by: Matan Breizman <[email protected]>
CJary pushed a commit to CJary/ceph that referenced this pull request Jan 17, 2025
ceph#58868 introduced
SnapMapper::update_snap_map to be used both by
Crimson and Classic.
No change in behavior.

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

3 participants