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
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:
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.
OO Updated by Oguzhan Ozmen about 2 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 72605
UB Updated by Upkeep Bot about 1 month ago
- 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
- 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
- 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