Skip to content

crimson/os/seastore: copy attrs and omaps when cloning objects - #55806

Merged
cyx1231st merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-seastore-clone-attrs-omaps
Feb 29, 2024
Merged

cyx1231st merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-seastore-clone-attrs-omaps

Conversation

@xxhdx1985126

Copy link
Copy Markdown
Member

At present, we just copy attrs and omaps one by one, which is not efficient but very important in terms of functionality especially for the teuthology tests

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

@xxhdx1985126
xxhdx1985126 requested a review from a team as a code owner February 28, 2024 06:23
@xxhdx1985126 xxhdx1985126 changed the title crimson/os/seastore: copy attrs and omaps when clone objects crimson/os/seastore: copy attrs and omaps when cloning objects Feb 28, 2024
@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-clone-attrs-omaps branch from 96bff47 to b06427a Compare February 28, 2024 06:24
Comment thread src/crimson/os/seastore/seastore.cc Resolved
At present, we just copy attrs and omaps one by one, which is not
efficient but very important in terms of functionality especially for
the teuthology tests

Signed-off-by: Xuehan Xu <[email protected]>
@xxhdx1985126
xxhdx1985126 force-pushed the wip-seastore-clone-attrs-omaps branch from b06427a to eff9755 Compare February 28, 2024 08:59
Comment thread src/crimson/os/seastore/seastore.cc Resolved
@cyx1231st
cyx1231st merged commit 733ea71 into ceph:main Feb 29, 2024
@pdvian

pdvian commented Feb 29, 2024

Copy link
Copy Markdown
Contributor

@xxhdx1985126 @cyx1231st

Upstream main builds are failing due to this PR :

https://jenkins.ceph.com/job/ceph-dev-build/ARCH=x86_64,AVAILABLE_ARCH=x86_64,AVAILABLE_DIST=centos8,DIST=centos8,MACHINE_SIZE=gigantic/54499//consoleFull :

[ 96%] Building CXX object src/crimson/os/seastore/CMakeFiles/crimson-seastore.dir/seastore.cc.o
/home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-1777-ga04996aa/rpm/el8/BUILD/ceph-19.0.0-1777-ga04996aa/src/crimson/os/seastore/seastore.cc: In lambda function:
/home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-1777-ga04996aa/rpm/el8/BUILD/ceph-19.0.0-1777-ga04996aa/src/crimson/os/seastore/seastore.cc:1618:11: error: cannot convert ‘const OnodeRef’ {aka ‘const boost::intrusive_ptr’} to ‘crimson::os::seastore::OnodeRef&’ {aka ‘boost::intrusive_ptr&’}
 1618 |           d_onode,
      |           ^~~~~~~
      |           |
      |           const OnodeRef {aka const boost::intrusive_ptr}
In file included from /home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-1777-ga04996aa/rpm/el8/BUILD/ceph-19.0.0-1777-ga04996aa/src/crimson/os/seastore/seastore.cc:4:
/home/jenkins-build/build/workspace/ceph-dev-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/19.0.0-1777-ga04996aa/rpm/el8/BUILD/ceph-19.0.0-1777-ga04996aa/src/crimson/os/seastore/seastore.h:429:17: note:   initializing argument 1 of ‘crimson::os::seastore::SeaStore::Shard::omap_set_kvs_ret crimson::os::seastore::SeaStore::Shard::_omap_set_kvs(crimson::os::seastore::OnodeRef&, const crimson::os::seastore::omap_root_le_t&, crimson::os::seastore::Transaction&, std::map, ceph::buffer::v15_2_0::list>&&)’
  429 |       OnodeRef &onode,
      |       ~~~~~~~~~~^~~~~
make[2]: *** [src/crimson/os/seastore/CMakeFiles/crimson-seastore.dir/build.make:622: src/crimson/os/seastore/CMakeFiles/crimson-seastore.dir/seastore.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....

[1] https://shaman.ceph.com/builds/ceph/

OnodeRef &d_onode,
const omap_type_t otype)
{
return trans_intr::repeat([&ctx, onode, d_onode, this, otype] {

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.

mutable for d_onode as _omap_set_kvs() takes non-const reference.

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.

return trans_intr::repeat([&ctx, onode, d_onode, this, otype] {
return seastar::do_with(
std::optional<std::string>(std::nullopt),
[&ctx, onode, d_onode, this, otype](auto &start) {

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.

Same here.

@cyx1231st

Copy link
Copy Markdown
Member

@pdvian @rzarzynski sorry about the breaking issue.

We might need to check against https://shaman.ceph.com/builds/ceph/ before merge in the future. @xxhdx1985126

@athanatos

Copy link
Copy Markdown
Contributor

@cyx1231st Generally, that should be covered by running through the teuthology suite -- the sooner we can get some basic seastore tests in teuthology the better.

@xxhdx1985126

Copy link
Copy Markdown
Member Author

@pdvian @rzarzynski sorry about the breaking issue.

We might need to check against https://shaman.ceph.com/builds/ceph/ before merge in the future. @xxhdx1985126

Yeah, sorry, I forgot that.

@cyx1231st

Copy link
Copy Markdown
Member

@cyx1231st Generally, that should be covered by running through the teuthology suite -- the sooner we can get some basic seastore tests in teuthology the better.

That's true. I'll prioritize the reviews if the PR (such as this one) is directly related towards this goal.

@xxhdx1985126

Copy link
Copy Markdown
Member Author

@cyx1231st Generally, that should be covered by running through the teuthology suite -- the sooner we can get some basic seastore tests in teuthology the better.

@cyx1231st @athanatos I've just submitted #55854 , it's proved to be able to make teuthology crimson-rados-experimental run successfully. Please take a look.

@cyx1231st cyx1231st mentioned this pull request Mar 13, 2024
4 of 14 tasks
@xxhdx1985126
xxhdx1985126 deleted the wip-seastore-clone-attrs-omaps branch April 23, 2024 03:15
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.

6 participants