]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/cloud-restore: Handle failure with adding restore entry
authorSoumya Koduri <skoduri@redhat.com>
Fri, 23 May 2025 20:25:30 +0000 (01:55 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Thu, 10 Jul 2025 16:40:34 +0000 (22:10 +0530)
commitf166f40dab2f1bedbc073c1c4adb5dcce0b01bfd
tree493fa38b2fb31fd4d38d251510ded86d901cdb2d
parentf6356641ae306eef3505d0c7907a18206fcc012b
rgw/cloud-restore: Handle failure with adding restore entry

In case adding restore entry to FIFO fails, reset the `restore_status`
of that object as "RestoreFailed" so that restore process can be
retried from the end S3 user.

Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 9974f51eb61603b8117d7b50e6b0b4614fcce721)
src/rgw/rgw_op.cc
src/rgw/rgw_restore.cc
src/rgw/rgw_restore.h