Repository navigation
Conversation
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
force-pushed
the
wip-ec-cache-hole-pin-test
branch
from
October 2, 2026 08:20
b8e3df3 to
438576a
Compare
This was referenced Oct 14, 2026
Contributor
Author
|
Superseded by #72684, which carries the reproducer commit unchanged. |
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.
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)indo_read_op.unittest_extent_cache:HoleErasedByOlderOpLineDeath(bad read sent fromrequest()) andHoleErasedBeforeReadDoneSendReads(sent fromread_done()).MultiClientnow asserts that every backend read intersects the read mask for the object size, mirroringdo_read_op.unittest_ecfailover_with_peering:ExtentCacheGrowthHoleErasedByLineDeathdrives 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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.