Actions
Bug #82193
open
KB
osd: an EC client read decodes around a shard with a media error, but nothing repairs the shard
Bug #82193:
osd: an EC client read decodes around a shard with a media error, but nothing repairs the shard
Status:
New
Priority:
Normal
Assignee:
-
Category:
EC Pools
Target version:
-
Due date:
% Done:
0%
Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:
Description
In a pool with EC optimizations, the primary reads the shards of an
object. Sometimes one shard's object store fails the read with EIO,
because of a checksum or media error. If enough other shards remain,
the primary decodes the data without that shard. It then only writes
this to the cluster log:
Error(s) ignored for <object> enough copies available
The damaged copy stays until a deep scrub with repair. Each read of the
object until then pays for a parity decode. In a replicated pool, a
read error on the primary repairs the object at once
(rep_repair_primary_object()).
Fix¶
- A new option, osd_ec_repair_on_read (default true), lets a clean PG
mark the object missing on the damaged shard and recover it. - Only a PG in which k+1 undamaged shards hold the object repairs this
way, so that the recovery survives one more error. - The new perf counter ec_read_repair counts the repairs.
The new standalone test TEST_ec_repair_on_read in test-erasure-eio.sh
covers it.
Affected versions: main
KB Updated by Kyle Bader about 1 month ago
- Pull request ID set to 73175
Actions