Repository navigation
tentacle: osd: Set projected_size to current_size on cache invalidate. - #72012
Merged
Merged
Conversation
When EC is dealing with resizing objects, it tracks the current_size (which reflects the size of the object on-disk) and projected size, which is the size the object will be once all queued transactions are applied. Since the expanded space of an object contains either write data, or a hole, the extent cache can void reading it for any future writes while it is active. It does this by marking "do_not_read" with this gap. The extent cache then relies on do_not_read generating reads beyond the end of current_size. The bug here is that during a cache invalidate, adding to do_not_read was skipped and in some situations, this could lead to a follow on op attempting to read off the end of an object. Fixes: https://tracker.ceph.com/issues/78465 Signed-off-by: Alex Ainscow <[email protected]> Assisted-by: IBM-Bob 2.0.1/Claude Sonnet/GPT-5 Signed-off-by: Alex Ainscow <[email protected]> (cherry picked from commit a970eae)
Contributor
|
This PR has been added to wip-bharath28-testing-20260924.103245-tentacle. |
Merged
4 of 14 tasks
Contributor
Author
|
Being reverted by #72650: this backport introduced a regression, https://tracker.ceph.com/issues/81611. |
aainscow
added a commit
to aainscow/ceph
that referenced
this pull request
Oct 13, 2026
This reverts commit f4ffa55, reversing changes made to 37e259b. With that change, ECExtentCache::Object::invalidate() sets projected_size to current_size, so replaying a queued rollback re-adds the rolled-back data as a growth hole in do_not_read. Writes queued behind the rollback then skip reading that data and zero-fill the parts of pages they do not overwrite. See: https://tracker.ceph.com/issues/81611 Assisted-by: Claude Code Signed-off-by: Alex Ainscow <[email protected]>
batrick
added a commit
that referenced
this pull request
Oct 14, 2026
* refs/pull/72650/head: Revert "Merge PR #72012 into tentacle" Reviewed-by: Patrick Donnelly <[email protected]> Reviewed-by: Bill Scales <[email protected]>
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.
backport tracker: https://tracker.ceph.com/issues/78467
backport of #70377
parent tracker: https://tracker.ceph.com/issues/78465
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh