Repository navigation
Conversation
5 of 14 tasks
| bounces the read with ``EAGAIN``, as it does for a missing object, and the | ||
| Objecter reissues it to the primary as a normal read, which decodes the data | ||
| from the other shards. The shard counts each such bounce in the | ||
| ``ec_direct_read_redirect_eio`` OSD perf counter and writes it to the OSD log. |
Contributor
There was a problem hiding this comment.
I think the first OSD is superfluous
aainscow
added a commit
to mmgaggle/ceph
that referenced
this pull request
Nov 26, 2026
Review comment from Anthony D'Atri on ceph#73176: "I think the first `OSD` is superfluous". Assisted-by: Claude Code
Since 0f17b4c (ceph#72292), an EC direct read that fails with EIO on its shard goes back to the client with EAGAIN. The client then sends the read to the primary, which decodes the data from the other shards. Only a debug log line shows such a bounce, so a damaged shard that clients read again and again stays hidden. Now the shard counts each bounce in the new perf counter ec_direct_read_redirect_eio, and writes it to the OSD log. The cluster log gets the 1st, 2nd, 4th, 8th and later bounces of each PG. If fiemap fails with EIO, a sparse direct read also bounces. A sparse direct read also skips the whole-object digest check, because the digest does not cover the chunks of one shard. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Kyle Bader <[email protected]> Signed-off-by: Alex Ainscow <[email protected]>
Review comment from Anthony D'Atri on ceph#73176: "I think the first `OSD` is superfluous". Assisted-by: Claude Code Signed-off-by: Alex Ainscow <[email protected]>
aainscow
force-pushed
the
wip-kbader-ec-direct-read-bounces
branch
from
November 27, 2026 13:59
fd93114 to
b097328
Compare
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.
Summary
Since #72292, an EC direct read that fails with EIO on its shard goes back to the client with EAGAIN. The client then sends the read to the primary, which decodes the data from the other shards. Only a debug log line shows such a bounce, so a damaged shard that clients read again and again stays hidden.
ec_direct_read_redirect_eio, and writes it to the OSD log.fiemapfails with EIO, a sparse direct read also bounces.The answer to the client still comes from
rep_repair_primary_object(), as in #72292.direct_reads.rstdescribes the bounce.Testing
With only this change on main 169a0fb, the new tests in
test-erasure-eio.shpass, and so doesTEST_ec_direct_read_eiofrom #72292:TEST_rados_get_direct_read_eio_shard_0TEST_rados_get_direct_read_eio_shard_1TEST_rados_get_direct_read_eio_single_chunkTEST_rbd_export_direct_read_eio_sparseThe tests inject the error into the data of a shard. No test covers the
fiemapcase.Checklist