Bug #80902
openrgw: a failed bucket index completion undoes a write that already happened
0%
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.
KB Updated by Kyle Bader 2 months ago
- Pull request ID set to 72098
MH Updated by Matthew Heler 2 months ago
- 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
- Related to Bug #83295: rgw: failed index update after the head write deletes the new object's data added