]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/CloudTransition: Fail GET on cloud tiered objects
authorSoumya Koduri <skoduri@redhat.com>
Wed, 4 Nov 2020 18:24:47 +0000 (23:54 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Thu, 18 Nov 2021 07:22:48 +0000 (12:52 +0530)
commitb86ba5d655b2d89b86e37f540dc21a3c4b4d2396
tree7e06835e63eb4f0b9742e84bfc669caf597dc168
parent557b519881c54ee7195d84968d1e2632827b7713
rgw/CloudTransition: Fail GET on cloud tiered objects

As per https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
GET operation may fail with “InvalidObjectStateError” error if the
object is in GLACIER or DEEP_ARCHIVE storage class and not restored.
Same can apply for cloud tiered objects. However STAT/HEAD requests
shall return the metadata stored.

& misc fixes

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_lc.cc
src/rgw/rgw_lc_tier.cc
src/rgw/rgw_op.cc