Repository navigation
rgw: temporarily disable calls to defer_gc() in RGWGetObj - #38253
Conversation
cls_rgw_gc_queue_update_entry() is known to cause data loss when called on objects that have not actually been scheduled for garbage collection RGWGetObj is the only caller, and uses defer_gc() when reads are taking a long time compared to rgw_gc_obj_min_wait. if an object has since been deleted and submitted for garbage collection, this allows RGWGetObj to defer that gc until the entire read completes by disabling these calls to defer_gc(), very long reads (longer than 1hr, with default configuration) may fail if the object gets deleted, and a retry will result in a 404 Not Found error as expected Fixes: https://tracker.ceph.com/issues/47866 Signed-off-by: Casey Bodley <[email protected]>
| gc_invalidate_time = start_time; | ||
| gc_invalidate_time += (s->cct->_conf->rgw_gc_obj_min_wait / 2); | ||
| } | ||
| /* garbage collection related handling: |
There was a problem hiding this comment.
Since some version of this code will likely be resurrected, possibly controlled by a config option, I'd have preferred a "#if 0" rather than a delete for the sake of continuity between commits, especially given the word "temporarily" appears in the name of the PR.
There was a problem hiding this comment.
when we're ready, we can revert the commit. i think committing and reverting is the most direct way to make a temporary transformation to the code
There was a problem hiding this comment.
really? that doesn't match my experience, really
There was a problem hiding this comment.
@mattbenjamin @cbodley @ivancich : Is there agreement amongst everyone to revert this commit?
There was a problem hiding this comment.
@pritha-srivastava no objection, it comes out the same in the end
|
jenkins test api |
cls_rgw_gc_queue_update_entry() is known to cause data loss when called
on objects that have not actually been scheduled for garbage collection
RGWGetObj is the only caller, and uses defer_gc() when reads are taking
a long time compared to rgw_gc_obj_min_wait. if an object has since been
deleted and submitted for garbage collection, this allows RGWGetObj to
defer that gc until the entire read completes
by disabling these calls to defer_gc(), very long reads (longer than 1hr,
with default configuration) may fail if the object gets deleted, and a
retry will result in a 404 Not Found error as expected
Fixes: https://tracker.ceph.com/issues/47866
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox