Skip to content

osd: repair an EC shard whose read failed with a media error - #73175

Open
mmgaggle wants to merge 1 commit into
ceph:mainfrom
mmgaggle:wip-kbader-ec-read-repair
Open

mmgaggle wants to merge 1 commit into
ceph:mainfrom
mmgaggle:wip-kbader-ec-read-repair

Conversation

@mmgaggle

Copy link
Copy Markdown
Member

Summary

The EC primary decoded a client read around a shard that failed with EIO, and only logged a warning. Now a clean PG marks the object missing on that shard and recovers it.

  • A new option, osd_ec_repair_on_read, turns it on. It is on by default, as read repair is in a replicated pool.
  • Only a PG with k+1 shards that the read did not find damaged repairs.
  • The new counter ec_read_repair counts the repairs.
  • A shard that finds a corrupt object info now sends its EIO with no data. The primary asserts on an object with an error and data.
  • PendingReleaseNotes names the option.

Fixes: https://tracker.ceph.com/issues/82193

Testing

These tests pass on main 169a0fb, with the other seven P0 fixes:

  • test-erasure-eio.sh: the new TEST_ec_repair_on_read passes.
  • TestBackendBasics.cc: four new TestECFailover cases pass: MediaErrorIsReportedForRepair, MediaErrorOnThePrimaryShardIsReported, OtherReadErrorsAreNotReportedForRepair and FastReadLateMediaErrorIsReported.

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)

The EC primary decoded a client read around a shard that failed with
EIO and only logged a warning. Now a clean PG marks the object missing
on that shard and recovers it (osd_ec_repair_on_read, ec_read_repair).
It is on by default, as a read repair in a replicated pool is, and only
a PG with k+1 shards that the read did not find damaged repairs. A
shard that finds a corrupt object info now sends no data with its EIO,
because the primary asserts on an object with an error and data.

Fixes: https://tracker.ceph.com/issues/82193
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Kyle Bader <[email protected]>
@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

+ added: osd_ec_repair_on_read (osd.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@mmgaggle mmgaggle mentioned this pull request Oct 27, 2026
5 of 14 tasks
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