Project

General

Profile

Actions

Bug #80907

open
KB KB

rgw: a refused conditional CompleteMultipartUpload drops its parts' index entries

Bug #80907: rgw: a refused conditional CompleteMultipartUpload drops its parts' index entries

Added by Kyle Bader 2 months ago. Updated 2 months ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle, umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

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 Actions #1

  • Pull request ID set to 72109

MH Updated by Matthew Heler 2 months ago Actions #2

  • Status changed from New to Fix Under Review
  • Assignee set to Kyle Bader
  • Backport changed from tentacle to tentacle, umbrella
Actions

Also available in: PDF Atom