Project

General

Profile

Actions

Bug #81668

closed
OO OO

rgw: failed OLH update rollback changes a null version's mtime

Bug #81668: rgw: failed OLH update rollback changes a null version's mtime

Added by Oguzhan Ozmen about 2 months ago. Updated about 1 month ago.

Status:
Backporting
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):
Fixed In:
v22.0.0-123-g9e49f5cb89
Released In:
Upkeep Timestamp:
2026-10-29T21:16:30+00:00
Tags:

Description

When set_olh() or unlink_obj_instance() fails, olh_cancel_modification() rewrites the head object without preserving its mtime.

If the head holds a null version's data, that version's mtime becomes the time of the failure.

HEAD ?versionId=null then disagrees with ListObjectVersions, and lifecycle transition of the null version fails forever with -ECANCELED (read_mtime doesn't match mtime).

Fix: set mtime2() on the rollback write, as olh_init_modification_impl() does already.


Related issues 2 (1 open — 1 closed)

Copied to rgw - Backport #82321: umbrella: rgw: failed OLH update rollback changes a null version's mtimeResolvedOguzhan Ozmen

Actions
Copied to rgw - Backport #82322: tentacle: rgw: failed OLH update rollback changes a null version's mtimeFix Under ReviewOguzhan Ozmen

Actions

OO Updated by Oguzhan Ozmen about 2 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 72605

UB Updated by Upkeep Bot about 1 month ago Actions #2

  • Copied to Backport #82321: umbrella: rgw: failed OLH update rollback changes a null version's mtime added

UB Updated by Upkeep Bot about 1 month ago Actions #3

  • Copied to Backport #82322: tentacle: rgw: failed OLH update rollback changes a null version's mtime added

UB Updated by Upkeep Bot about 1 month ago Actions #4

  • Status changed from Fix Under Review to Backporting
  • Merge Commit set to 9e49f5cb896f1d1d30124ff3fccd9aa9a2725e98
  • Fixed In set to v22.0.0-123-g9e49f5cb89
  • Upkeep Timestamp set to 2026-10-29T21:16:30+00:00
Actions

Also available in: PDF Atom