Repository navigation
rgw/lc: don't report a canceled transition as transitioned - #72609
Merged
BBoozmen merged 5 commits intoOct 29, 2026
Merged
Conversation
Add a "delay_copy_obj_data_complete" point for rgw_inject_delay_pattern that holds copy_obj_data() after it reads the source and before it writes the head object. Tests use it to land a concurrent overwrite in that window, e.g. while lifecycle is transitioning an object. Signed-off-by: Oguzhan Ozmen <[email protected]>
mattbenjamin
left a comment
Contributor
There was a problem hiding this comment.
the changes in rgw_lc.{h,cc} are very much fine, I would like a review by Soumya and/our Casey on the internal flow
BBoozmen
force-pushed
the
wip-oozmen-81669-lc-transition-reporting
branch
from
October 21, 2026 23:20
c319de7 to
f249a64
Compare
Overwrite an object while lifecycle is transitioning it, between reading the source and writing the head. The transition loses the race and is rolled back, so lifecycle must not log it as TRANSITIONED. The lifecycle suite runs rgw with 'rgw lc debug interval: 10', so its own LC thread could transition the object (or the overwritten one) before radosgw-admin does. Use a 5-day rule and run radosgw-admin with a 1s day: the object is due for radosgw-admin after 5s but for rgw only after 50s. Rerun radosgw-admin if it exits before the transition starts, e.g. when rgw's LC thread holds the shard lock. Without the fix, lifecycle logs the canceled transition as "TRANSITIONED" and the test fails. Reproduces: https://tracker.ceph.com/issues/81669 Signed-off-by: Oguzhan Ozmen <[email protected]>
If a transition loses a race (the object is overwritten or removed while it is being copied), the write is rolled back and it's set "canceled" with 0 return value. copy_obj_data() passed no pcanceled pointer, so the flag was dropped and transition_obj() reported success for an object it had not moved. Lifecycle then logged it as "TRANSITIONED", bumped the transition counters and published a notification for it. Add the "pcanceled" param instead of passing nullptr and return -ECANCELED when the write was canceled, so lifecycle handles it like any other failed transition. The object is re-evaluated against the rules on the next lifecycle run. Fixes: https://tracker.ceph.com/issues/81669 Signed-off-by: Oguzhan Ozmen <[email protected]>
transition() returns -ECANCELED when the object was overwritten or removed while lifecycle was transitioning it. Say so in the error message, so this race can be told apart from other transition failures. Check for it in the canceled-transition test. Signed-off-by: Oguzhan Ozmen <[email protected]>
LCOpRule::execute() runs every lifecycle action (expiration and transition), but logged any failure as "ERROR: remove_expired_obj", so a failed transition read like a failed expiration. Use generic "lifecycle action failed" message instead. Also add the rule ID so the failure can be traced back to the rule that fired. Signed-off-by: Oguzhan Ozmen <[email protected]>
BBoozmen
force-pushed
the
wip-oozmen-81669-lc-transition-reporting
branch
from
October 22, 2026 01:22
f249a64 to
de60bc8
Compare
soumyakoduri
approved these changes
Oct 22, 2026
Contributor
Author
|
ceph-ci branch: https://github.com/ceph/ceph-ci/commits/wip-oozmen-testing-lc-xtion-reporting-2026-10-26-2016/ Summary
The new testcase
|
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: https://tracker.ceph.com/issues/81669
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.