Skip to content

osd: revert #70377 "Set projected_size to current_size on cache invalidate." - #72666

Merged
aainscow merged 2 commits into
ceph:mainfrom
aainscow:wip-revert-70377
Oct 22, 2026
Merged

aainscow merged 2 commits into
ceph:mainfrom
aainscow:wip-revert-70377

Conversation

@aainscow

Copy link
Copy Markdown
Contributor

Reverts #70377 (a970eae, https://tracker.ceph.com/issues/78465).

With that change, ECExtentCache::Object::invalidate() replays from current_size, so a rollback replayed behind another op 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 their pages they do not overwrite (https://tracker.ceph.com/issues/81611).

The tentacle backport is reverted by #72650. Reverting on main too keeps the two branches the same, so the replacement fix backports cleanly.

The first commit disables the three tests from #70371 that were written against the reverted change (CloneInvalidateStaleSize, TruncateGrowWithSuspendedReads, RollbackInvalidateRealistic): without it the extent cache test fails and the two backend tests hit ceph_assert(reads_sent), which aborts the rest of unittest_backend_basics. A follow-up PR re-enables them with the replacement fix.

The replacement fix, with a description of the whole problem, is tracked in https://tracker.ceph.com/issues/81754.

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

🤖 Generated with Claude Code

CloneInvalidateStaleSize, TruncateGrowWithSuspendedReads and
RollbackInvalidateRealistic test the fix in ECExtentCache::Object::
invalidate() that the next commit reverts. Without it the extent cache
test fails and the two backend tests hit ceph_assert(reads_sent), which
aborts the rest of unittest_backend_basics. Disable them until 78465 has
a new fix.

See: https://tracker.ceph.com/issues/78465
Assisted-by: Claude Code
Signed-off-by: Alex Ainscow <[email protected]>
…lidate-ec-extent-cache-fix"

This reverts commit 93a785e, reversing
changes made to cb76fd5.

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]>

@bill-scales bill-scales 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.

LGTM - Reverts the broken fix in PR #70377 and disables the 3 associated tests for the fix added in PR #70371

@aainscow
aainscow marked this pull request as ready for review October 14, 2026 15:22
@aainscow
aainscow requested a review from a team as a code owner October 14, 2026 15:22
@aainscow
aainscow merged commit 41673d9 into ceph:main Oct 22, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants