Bug #80907
openrgw: a refused conditional CompleteMultipartUpload drops its parts' index entries
0%
Description
Found with the conditional-request extension of the P model of RGW overwrites, and reproduced on main at 44d50f6abb9 on a single-host vstart cluster with the injection points in injection points and new cases in the qa workunit qa workunit. By code review the same code is in tentacle.
A completion with If-None-Match: * that loses the race to create the key is
refused with 412, and its upload stays: it can be listed, completed again or
aborted. But the index op's cancel applies remove_objs
(rgw_rados.cc:3725, cls_rgw.cc:1357), so the parts' index entries are gone.
Bucket stats undercount the parts until the upload completes or is aborted. No
data is lost.
Cancel a refused write's index op without remove_objs; they belong to the
completion that takes effect.
Reproducer: workunit case test_refused_complete_keeps_parts, a PutObject and a
completion with If-None-Match: * held at write_meta_before_head_write; the
parts' index entries go from 2 to 0. It fails on main and with the fixes proposed
so far.
KB Updated by Kyle Bader 2 months ago
- Pull request ID set to 72109
MH Updated by Matthew Heler 2 months ago
- Status changed from New to Fix Under Review
- Assignee set to Kyle Bader
- Backport changed from tentacle to tentacle, umbrella