Project

General

Profile

Actions

Bug #63306

closed
CB CB

multisite: objects replicated with compress-encrypted store wrong (compressed) size in the bucket index

Bug #63306: multisite: objects replicated with compress-encrypted store wrong (compressed) size in the bucket index

Added by Casey Bodley about 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

100%

Source:
Development
Backport:
quincy reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v18.0.0-7097-g2d25149b62b
Released In:
v19.2.0~1288
Upkeep Timestamp:
2025-07-11T21:11:27+00:00

Description

after replication, the bucket index incorrectly uses the compressed size instead of the actual size

tested on two zones with zlib compression enabled, the compress-encrypted zonegroup feature enabled, and a rgw crypt default encryption key configured

primary:

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

~/ceph/build $ s3cmd -c c1.s3cfg ls s3://testbucket
2023-10-24 18:46     20971520  s3://testbucket/20m.iso

~/ceph/build $ s3cmd -c c1.s3cfg info s3://testbucket/20m.iso
s3://testbucket/20m.iso (object):
   File size: 20971520

secondary:

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

~/ceph/build $ s3cmd -c c2.s3cfg ls s3://testbucket
2023-10-24 18:46        20424  s3://testbucket/20m.iso

~/ceph/build $ s3cmd -c c2.s3cfg info s3://testbucket/20m.iso
s3://testbucket/20m.iso (object):
   File size: 20971520

the replicated object itself has the correct size and can be downloaded successfully:

~/ceph/build $ s3cmd -c c2.s3cfg get s3://testbucket/20m.iso 20m.iso.out
download: 's3://testbucket/20m.iso' -> '20m.iso.out'  [1 of 1]
 20971520 of 20971520   100% in    0s    44.11 MB/s  done

Related issues 3 (0 open — 3 closed)

Related to rgw - Bug #57905: multisite: terminate called after throwing an instance of 'ceph::buffer::v15_2_0::end_of_buffer'ResolvedCasey Bodley

Actions
Copied to rgw - Backport #63451: quincy: multisite: objects replicated with compress-encrypted store wrong (compressed) size in the bucket indexRejectedCasey Bodley

Actions
Copied to rgw - Backport #63452: reef: multisite: objects replicated with compress-encrypted store wrong (compressed) size in the bucket indexResolvedCasey Bodley

Actions

CB Updated by Casey Bodley about 3 years ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 54174

CB Updated by Casey Bodley about 3 years ago Actions #2

  • Related to Bug #57905: multisite: terminate called after throwing an instance of 'ceph::buffer::v15_2_0::end_of_buffer' added

CB Updated by Casey Bodley about 3 years ago Actions #3

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot about 3 years ago Actions #4

  • Copied to Backport #63451: quincy: multisite: objects replicated with compress-encrypted store wrong (compressed) size in the bucket index added

UB Updated by Upkeep Bot about 3 years ago Actions #5

  • Copied to Backport #63452: reef: multisite: objects replicated with compress-encrypted store wrong (compressed) size in the bucket index added

KS Updated by Konstantin Shalygin almost 2 years ago Actions #7

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
  • Source set to Development

UB Updated by Upkeep Bot over 1 year ago Actions #8

  • Merge Commit set to 2d25149b62b142b094fde99160509bd8af1dae16
  • Fixed In set to v18.0.0-7097-g2d25149b62b
  • Released In set to v19.2.0~1288
  • Upkeep Timestamp set to 2025-07-11T21:11:27+00:00
Actions

Also available in: PDF Atom