Skip to content

tentacle: rgw: copy_obj_data() record uncompressed size for a compressed source - #70241

Merged
batrick merged 1 commit into
ceph:tentaclefrom
BBoozmen:wip-78257-tentacle
Aug 20, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
BBoozmen:wip-78257-tentacle

Conversation

@BBoozmen

Copy link
Copy Markdown
Contributor

@BBoozmen
BBoozmen requested a review from a team as a code owner July 15, 2026 19:25
@BBoozmen BBoozmen added this to the tentacle milestone Jul 15, 2026
@BBoozmen BBoozmen added the rgw label Jul 15, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 15, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test make check

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Jul 16, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@anrao19

anrao19 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@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

@batrick

batrick commented Jul 23, 2026

Copy link
Copy Markdown
Member

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.
@github-actions

Copy link
Copy Markdown

⚠️ Audit Override Removed

New commits were pushed to this PR, so the previous override has been removed.

View workflow run

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 23, 2026
@BBoozmen

Copy link
Copy Markdown
Contributor Author

@adamemerson / @batrick - rebased. It was a trivial merge-conflict.

@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 23, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@anrao19

anrao19 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@BBoozmen

BBoozmen commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor Author

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

C{++} Error in /ceph/rpmbuild/BUILD/ceph-20.2.2-418-g016653ef/src/rgw/rgw_rest_s3.cc:128:11

which is touched by #70494 (exactly around line 128).

@anrao19

anrao19 commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

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/

pr testing completed and approved by @ivancich : https://tracker.ceph.com/issues/78633
@BBoozmen , if no further testing is needed then this pr can be merged

@BBoozmen

Copy link
Copy Markdown
Contributor Author

pr testing completed and approved by @ivancich : https://tracker.ceph.com/issues/78633
@BBoozmen , if no further testing is needed then this pr can be merged

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:

teuthology.log.1:2026-07-29T08:34:28.794 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_same_bucket ... ok
teuthology.log.1:2026-07-29T08:34:40.244 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_different_bucket ... ok
teuthology.log.2:2026-07-29T08:47:57.288 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_same_bucket ... ok
teuthology.log.2:2026-07-29T08:48:13.654 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_different_bucket ... ok
teuthology.log.3:2026-07-29T14:04:41.732 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_same_bucket ... ok
teuthology.log.3:2026-07-29T14:05:03.243 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_different_bucket ... ok
teuthology.log.4:2026-07-29T14:04:08.045 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_same_bucket ... ok
teuthology.log.4:2026-07-29T14:04:19.344 INFO:tasks.rgw_multisite_tests:rgw_multi.tests.test_copy_object_different_bucket ... ok

@BBoozmen BBoozmen removed the needs-qa label Aug 10, 2026
@batrick batrick modified the milestones: tentacle, v20.2.5 Aug 20, 2026
@batrick
batrick merged commit 341675d into ceph:tentacle Aug 20, 2026
11 of 12 checks passed
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.

4 participants