Skip to content

rgw: fetch_remote_obj() uses uncompressed size for encrypted objects - #54174

Merged
cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-63306
Nov 6, 2023
Merged

cbodley merged 2 commits into
ceph:mainfrom
cbodley:wip-63306

Conversation

@cbodley

@cbodley cbodley commented Oct 24, 2023

Copy link
Copy Markdown
Contributor

use the original size from RGW_ATTR_COMPRESSION as the accounted size in the bucket index for objects that were transferred in their encrypted/compressed form

Fixes: https://tracker.ceph.com/issues/63306

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

and use it instead of cb.get_data_len() after testing for equality

Signed-off-by: Casey Bodley <[email protected]>
@cbodley
cbodley requested a review from a team as a code owner October 24, 2023 20:56
@github-actions github-actions Bot added the rgw label Oct 24, 2023
@cbodley
cbodley requested a review from smanjara October 24, 2023 20:57
use the original size from RGW_ATTR_COMPRESSION as the accounted size in
the bucket index for objects that were transferred in their
encrypted/compressed form

Fixes: https://tracker.ceph.com/issues/63306

Signed-off-by: Casey Bodley <[email protected]>
@cbodley

cbodley commented Oct 24, 2023 •

Copy link
Copy Markdown
Contributor Author

with the fix applied, bucket listing on the destination zone shows the correct uncompressed size:

~/ceph/build $ s3cmd -c c2.s3cfg ls s3://testbucket
2023-10-24 21:03     20971520  s3://testbucket/20m.iso

it is also fixes the 'bucket stats' output. stats on the destination zone:

        "rgw.main": {
            "size": 20971520,
            "size_actual": 20971520,
            "size_utilized": 20424,
            "size_kb": 20480,
            "size_kb_actual": 20480,
            "size_kb_utilized": 20,
            "num_objects": 1
        }

match the stats on the source zone:

       "rgw.main": {         
            "size": 20971520,
            "size_actual": 20971520,
            "size_utilized": 20424,                                            
            "size_kb": 20480,                                                  
            "size_kb_actual": 20480,
            "size_kb_utilized": 20,
            "num_objects": 1    
        }

@cbodley

cbodley commented Nov 6, 2023

Copy link
Copy Markdown
Contributor Author

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.

2 participants