]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/fifo: Retry on push to nonexistent part
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 30 Nov 2022 00:41:40 +0000 (19:41 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Mon, 9 Jan 2023 22:27:36 +0000 (17:27 -0500)
commit3493e044cbb04130dcaa50eb70ce0a986270f1b0
treed80cbf75a6a2f2626036255c527b2880f8171a35
parentbf222906b01cbb9e8d55ae4685004a22cddcc138
cls/fifo: Retry on push to nonexistent part

A racing client may delete the part we're trying to push to. Use
`assert_exists()` to check, and re-read metadata if we receive
-ENOENT.

Fixes: https://tracker.ceph.com/issues/57562
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/driver/rados/cls_fifo_legacy.cc