Repository navigation
crimson/osd/pg: implement PG::PGLogEntryHandler::remove() - #59227
Conversation
There was a problem hiding this comment.
This method may have other future users which are not pglog rollback, can you move this to
PGLogEntryHandler::remove?
There was a problem hiding this comment.
I'm not sure that we actually need backend here:
t->remove(coll_ref->get_cid(), ghobject_t{hoid, ghobject_t::NO_GEN, pg_whoami.shard});
There was a problem hiding this comment.
Can we please move this into PG::clear_object_snap_mapping?
I think that we might also miss clear_object_snap_mapping / remove_snap_mapped_object since IIUC, PGLogEntryHandler::remove should only be responsible for removing.
Will calling snap_mapper.remove_oid allow us to avoid implementing the two functions mentioned above?
There was a problem hiding this comment.
I think we need remove_snap_mapped_object. clear_object_snap_mapping is always used with ceph::os::Transaction::remove, which can be replace by remove_snap_mapped_object. What do you think?
There was a problem hiding this comment.
All coments addressed, please take a look again:-)
when submitting transactions Signed-off-by: Xuehan Xu <[email protected]>
94635e9 to
1638fbd
Compare
1638fbd to
dabea15
Compare
|
jenkins test make check |
|
jenkins test api |
Matan-B
left a comment
There was a problem hiding this comment.
lgtm, make check fails:
/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/osd/recovery_backend.cc:210:40: error: 'soid' in capture list does not name a variable
co_await interruptor::async([this, soid, &t] {
^
/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/osd/recovery_backend.cc:211:44: error: reference to local binding 'soid' declared in enclosing function 'RecoveryBackend::handle_backfill_remove'
pg.remove_object_maybe_snapmapped(t, soid);
^
/home/jenkins-build/build/workspace/ceph-pull-requests/src/crimson/osd/recovery_backend.cc:208:38: note: 'soid' declared here
for ([[maybe_unused]] const auto& [soid, ver] : m.ls) {
^
2 errors generated.
(recover/backfill)_delete should remove oids in the snap mapper together with the objects Signed-off-by: Xuehan Xu <[email protected]>
dabea15 to
66620cc
Compare
|
jenkins test api |
crimson/osd/pg: implement PG::PGLogEntryHandler::remove() Reviewed-by: Matan Breizman <[email protected]>
Fixes: https://tracker.ceph.com/issues/67564
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