Skip to content

test/osd: Add EC extent cache growth hole reproducers - #72332

Closed
aainscow wants to merge 2 commits into
ceph:mainfrom
aainscow:wip-ec-cache-hole-pin-test
Closed

aainscow wants to merge 2 commits into
ceph:mainfrom
aainscow:wip-ec-cache-hole-pin-test

Conversation

@aainscow

@aainscow aainscow commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Depends on #72331. Only the last commit is new; the first is the fix from #72331.

Adds reproducers for the extent cache bug fixed in #72331, where an older op's line death erases a growing op's hole and a later RMW read hits ceph_assert(reads_sent) in do_read_op.

  • unittest_extent_cache: HoleErasedByOlderOpLineDeath (bad read sent from request()) and HoleErasedBeforeReadDoneSendReads (sent from read_done()). MultiClient now asserts that every backend read intersects the read mask for the object size, mirroring do_read_op.
  • unittest_ecfailover_with_peering: ExtentCacheGrowthHoleErasedByLineDeath drives the same sequence through the EC backend, holding the blocking op's read by suspending messages to shard 1. Without the fix it fails with the production backtrace in all 10 Fast EC configurations; with it, all pass.

Related: https://tracker.ceph.com/issues/81315

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.

@aainscow
aainscow requested a review from a team as a code owner October 2, 2026 08:09
When an op grows an object, Object::request() adds the gap between the
old and new projected size to do_not_read, so later ops do not read
data that is not yet on disk. do_not_read entries are erased a line at a
time when the last op pinning the line dies, but the growing op only
pinned the lines of its own reads and writes.

An older op pinning a line inside the hole could therefore die first and
erase that part of the hole while the growing op was still waiting for
its cache_ready, before current_size was updated. A following op would
then send reads in the hole with the old current_size, none survived the
read mask, and do_read_op hit ceph_assert(reads_sent).

Pin every line the hole spans, so that it lives until the growing op
completes.

Fixes: https://tracker.ceph.com/issues/81315
Assisted-by: Claude Code
Signed-off-by: Alex Ainscow <[email protected]>
Add two extent cache unit tests in which an older op's line death erases
a growing op's hole, one sending the bad read from request() and one
from read_done(). MultiClient now asserts that every backend read
intersects the read mask for the object size, mirroring do_read_op.

Add TestECFailoverWithPeering.ExtentCacheGrowthHoleErasedByLineDeath,
which drives the same sequence through the EC backend, holding the
blocking op's read by suspending messages to shard 1.

Assisted-by: Claude Code
Signed-off-by: Alex Ainscow <[email protected]>
@aainscow

Copy link
Copy Markdown
Contributor Author

Superseded by #72684, which carries the reproducer commit unchanged.

@aainscow aainscow closed this Oct 14, 2026
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.

1 participant