Actions
Bug #81669
closed
OO
OO
rgw/lc: a transition canceled by a concurrent overwrite is reported as TRANSITIONED
Bug #81669:
rgw/lc: a transition canceled by a concurrent overwrite is reported as TRANSITIONED
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-75-ga370867f5a
Released In:
Upkeep Timestamp:
2026-11-26T01:10:37+00:00
Tags:
Description
If an object is overwritten or deleted while lifecycle is transitioning it , e.g., after the data is read but before the head is written, the write is rolled back. However, copy_obj_data() drops the processor's canceled flag, so transition_obj() reports success. Lifecycle then logs TRANSITIONED, bumps the transition counter and sends a notification for an object it never moved.
Reproducible with a delay injected between the read and the head write (see referenced PR):
Without a fix, the buggy behaviour
# Reproduction: lifecycle transition racing a concurrent overwrite
20:41:46.938 PUT obj body="old data" -> STANDARD, etag 2bf6456b...
20:41:47.036 PUT lifecycle rule "to-lukewarm": Days=0 -> LUKEWARM
20:41:47.037 radosgw-admin lc process --bucket=lc-cancel-demo --rgw-lc-debug-interval=10 \
--rgw-inject-delay-sec=5 --rgw-inject-delay-pattern=delay_copy_obj_data_complete \
--debug-rgw-lifecycle=2
20:41:47.504 lifecycle: copy_obj_data: injecting delay of 5s for lc-cancel-demo:obj
20:41:47.575 PUT obj body="new data" (concurrent overwrite during the delay) ********** CONCURRENT WRITE ******
20:41:52.521 lifecycle: TRANSITIONED::lc-cancel-demo[...]):obj -> LUKEWARM <-- WRONG
20:41:52.558 lc process exits 0
20:41:52.558 HEAD/GET obj -> STANDARD, etag e83ca39a..., body="new data" ***** STILL IN STANDARD *****
With the proposed fix of passing the cancellation to LC:
20:44:44.995 lifecycle: copy_obj_data: injecting delay of 5s for lc-cancel-demo:obj 20:44:45.062 PUT obj body="new data" (concurrent overwrite during the delay) 20:44:50.011 lifecycle: transition of :lc-cancel-demo[...]):obj -> LUKEWARM was canceled (object changed concurrently); not transitioned. **** new event *** 20:44:50.042 HEAD/GET obj -> STANDARD, etag e83ca39a..., body="new data"
OO Updated by Oguzhan Ozmen about 2 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 72609
OO Updated by Oguzhan Ozmen about 2 months ago
- Backport set to tentacle umbrella
UB Updated by Upkeep Bot about 1 month ago
- Copied to Backport #82301: umbrella: rgw/lc: a transition canceled by a concurrent overwrite is reported as TRANSITIONED added
UB Updated by Upkeep Bot about 1 month ago
- Copied to Backport #82302: tentacle: rgw/lc: a transition canceled by a concurrent overwrite is reported as TRANSITIONED added
UB Updated by Upkeep Bot about 1 month ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to a370867f5aa6e3b75627522c2e1184b2b402be29
- Fixed In set to v22.0.0-75-ga370867f5a
- Upkeep Timestamp set to 2026-10-29T13:46:21+00:00
UB Updated by Upkeep Bot 8 days ago
- Status changed from Backporting to Resolved
- Upkeep Timestamp changed from 2026-10-29T13:46:21+00:00 to 2026-11-26T01:10:37+00:00
Actions