Skip to content

umbrella: osd: Set projected_size to current_size on cache invalidate. - #72013

Closed
aainscow wants to merge 1 commit into
ceph:umbrellafrom
aainscow:wip-78466-umbrella
Closed

aainscow wants to merge 1 commit into
ceph:umbrellafrom
aainscow:wip-78466-umbrella

Conversation

@aainscow

Copy link
Copy Markdown
Contributor

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)
@aainscow
aainscow requested a review from a team as a code owner September 23, 2026 16:08
@aainscow aainscow added this to the umbrella milestone Sep 23, 2026
@aainscow aainscow added the core label Sep 23, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Sep 23, 2026
@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath27-testing-20260924.224940-umbrella.

@ronen-fr

Copy link
Copy Markdown
Contributor

@ronen-fr ronen-fr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A clean backport, matching the original.
And the code seems right.

@aainscow

Copy link
Copy Markdown
Contributor Author

I have found a regression in this PR which cause data integrity issues elsewhere. I am working on a fix.

@aainscow

Copy link
Copy Markdown
Contributor Author

No longer needed: #70377 is reverted on main (#72666) and tentacle (#72650). The replacement fix is #72683 (https://tracker.ceph.com/issues/81754).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core do-not-merge Rados-Tested releng-audit-pass Release engineering: passed backport verification audit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants