Repository navigation
crimson/os/seastore: copy attrs and omaps when cloning objects - #55806
Conversation
96bff47 to
b06427a
Compare
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]>
b06427a to
eff9755
Compare
|
Upstream main builds are failing due to this PR : [ 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....
|
| OnodeRef &d_onode, | ||
| const omap_type_t otype) | ||
| { | ||
| return trans_intr::repeat([&ctx, onode, d_onode, this, otype] { |
There was a problem hiding this comment.
mutable for d_onode as _omap_set_kvs() takes non-const reference.
| 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) { |
|
@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 |
|
@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. |
Yeah, sorry, I forgot that. |
That's true. I'll prioritize the reviews if the PR (such as this one) is directly related towards this goal. |
@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. |
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e