Repository navigation
tentacle: rgw: copy_obj_data() record uncompressed size for a compressed source - #70241
Conversation
|
/audit override |
|
jenkins test make check |
|
✅ Audit Override Applied by @adamemerson. |
|
This PR has been added to tentacle integration testing by anuchaithra started 2026-07-17-06:32. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Needs rebased and retested. |
When copying an object and a compressor/encryption processor is configured for the destination, the bucket-index accounted_size was set from `ofs`. If the source is compressed but the destination is not (re-)compressed (e.g. compression is off, or rgw_compression_type=random rolled no-compression), then `ofs` is the compressed size, not the logical size. In multisite this diverges from the peer zone, which recomputes its own accounted_size via fetch_remote_obj() (already corrected in ceph#63306). ListObjectVersions then reports different sizes per zone. Pass along the source's logical size (astate->accounted_size, derived from the object's own attrs and correct for plain/compressed/encrypted) into copy_obj_data() and use it when the destination is not compressed. The rewrite_obj() and transition_obj() callers pass 0 and keep the prior ofs-based behaviour. This is the copy_obj analog of the fetch_remote_obj fix in ceph#63306. No on-disk/encoding change; corrects newly copied objects only (existing index entries are unaffected) and is safe across a mixed-version upgrade. Fixes: https://tracker.ceph.com/issues/75716 Fixes: https://tracker.ceph.com/issues/75715 Signed-off-by: Oguzhan Ozmen <[email protected]> (cherry picked from commit 5addb80) Conflicts: src/rgw/driver/rados/rgw_rados.cc - copy_obj_data has a different signature in tentacle: dp_factory argument is not used. - now copy_obj_data has the dp_factory argument; the one adding dp_factory to tentacle was bacported before this one.
56cba42 to
08a974f
Compare
|
New commits were pushed to this PR, so the previous override has been removed. |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #70241 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 08a974f rgw: copy_obj_data() record uncompressed size for a compressed source | PR #70006 | 5addb80 rgw: copy_obj_data() record uncompressed size for a compressed source |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 08a974f (cherry-pick of 5addb80)
Affected File(s)
src/rgw/driver/rados/rgw_rados.cc
Range Diff
Click to expand
--- Original (5addb80a)
+++ Backport (08a974ff)
@@ -23,3 +23,11 @@
Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
+(cherry picked from commit 5addb80abac1f19cc779744150b8d9b8aebb8f93)
+
+Conflicts:
+ src/rgw/driver/rados/rgw_rados.cc
+- copy_obj_data has a different signature in tentacle: dp_factory argument
+ is not used.
+- now copy_obj_data has the dp_factory argument; the one adding dp_factory
+ to tentacle was bacported before this one.
================================================================================
RANGE DIFF
================================================================================
1: 5addb80abac ! 1: 08a974ff1c8 rgw: copy_obj_data() record uncompressed size for a compressed source
@@ Commit message
Fixes: https://tracker.ceph.com/issues/75716
Fixes: https://tracker.ceph.com/issues/75715
Signed-off-by: Oguzhan Ozmen <[email protected]>
+ (cherry picked from commit 5addb80abac1f19cc779744150b8d9b8aebb8f93)
+
+ Conflicts:
+ src/rgw/driver/rados/rgw_rados.cc
+ - copy_obj_data has a different signature in tentacle: dp_factory argument
+ is not used.
+ - now copy_obj_data has the dp_factory argument; the one adding dp_factory
+ to tentacle was bacported before this one.
## src/rgw/driver/rados/rgw_rados.cc ##
@@ src/rgw/driver/rados/rgw_rados.cc: int RGWRados::copy_obj(RGWObjectCtx& src_obj_ctx,
- attrs.erase(RGW_ATTR_CRYPT_PART_NUMS);
- attrs.erase(RGW_ATTR_CRYPT_PREFETCH_ALIGN);
+ if (copy_data) { /* refcounting tail wouldn't work here, just copy the data */
+ attrs.erase(RGW_ATTR_TAIL_TAG);
return copy_obj_data(dest_obj_ctx, owner, dest_bucket_info, dest_placement, read_op, obj_size - 1, dest_obj,
- mtime, real_time(), attrs, olh_epoch, delete_at, petag, dp_factory, dpp, y);
-+ mtime, real_time(), attrs, olh_epoch, delete_at, petag, dp_factory, dpp, y,
-+ astate->accounted_size);
++ mtime, real_time(), attrs, olh_epoch, delete_at, petag, dp_factory, dpp, y, astate->accounted_size);
}
/* This has been in for 2 years, so we can safely assume amanifest is not NULL */How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
@adamemerson / @batrick - rebased. It was a trivial merge-conflict. |
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
This PR has been added to tentacle integration testing by anuchaithra started 2026-07-24-05:41. |
@BBoozmen , shaman build creation is failing could you please check : https://shaman.ceph.com/builds/ceph/wip-anuchaithra-testing-20260724.054106-tentacle/ |
@anrao19 I think it's due to #70494 as the build error is which is touched by #70494 (exactly around line 128). |
pr testing completed and approved by @ivancich : https://tracker.ceph.com/issues/78633 |
Sounds good, thank you. No further testing is needed. Looking at your 2 jobs/submission each running 2 multisite suites: 2 x 2 -> 4 multisite runs. In all runs, two flaky testcases this PR address now pass consistently: |
backport tracker: https://tracker.ceph.com/issues/78257
backport of #70006
parent tracker: https://tracker.ceph.com/issues/75716
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh