Project

General

Profile

Actions

Bug #80902

open
KB KB

rgw: a failed bucket index completion undoes a write that already happened

Bug #80902: rgw: a failed bucket index completion undoes a write that already happened

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 a formal model of RGW overwrites and multipart uploads P model, and reproduced on main at 44d50f6abb9 on a single-host vstart cluster, except where noted. By code review the same code is in tentacle, except where noted.

Since a67a233ccbd (main only), a FIFO-bilog bucket flushes its bilog batch before the index completion op, so a flush error surfaces after the head write. _do_write_meta treats it like a lost race or a failure. PutObject then deletes the tail its new head names, a copy drops its references, and a completion skips its meta delete, which leads into U3.

Reproducer: the model only (tcIxFailPutLoss, tcIxFailCopyLoss, tcIxFailRetryLoss); not yet reproduced on a cluster, which needs a bilog flush to fail. Not in tentacle.

Proposed fix: keep the write, leave the pending op for a listing to repair, and still remove the entries the write replaces, such as a completion's parts.


Related issues 1 (1 open — 0 closed)

Related to rgw - Bug #83295: rgw: failed index update after the head write deletes the new object's dataFix Under ReviewKrunal Chheda

Actions

KB Updated by Kyle Bader 2 months ago Actions #1

  • Pull request ID set to 72098

MH Updated by Matthew Heler 2 months ago Actions #2

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

KC Updated by Krunal Chheda 13 days ago Actions #3

  • Related to Bug #83295: rgw: failed index update after the head write deletes the new object's data added
Actions

Also available in: PDF Atom