Actions
Bug #82194
open
KB
KB
osd: an op is answered twice when a read in a CALL fails with EIO and goes to rep_repair_primary_object()
Bug #82194:
osd: an op is answered twice when a read in a CALL fails with EIO and goes to rep_repair_primary_object()
Status:
Fix Under Review
Priority:
Normal
Assignee:
Category:
Correctness/Safety
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
When a read fails with EIO, PrimaryLogPG::rep_repair_primary_object()
handles it:
- On a replica, or on an EC shard that serves a direct read, it sends
the client an EAGAIN reply, and returns -EAGAIN. The EC shard case
came with https://github.com/ceph/ceph/pull/72292. - On the primary, it puts the op in a wait list until the object is
repaired, and returns -EAGAIN.
A read in the class method of a CALL (cls_cxx_read) does not always
pass the -EAGAIN back to do_osd_ops(). The method can go on, and the op
then ends with another result. On a replica or a shard, execute_ctx()
then sends a second reply for the op. On the primary, the op both waits
for the repair and goes on with its run, which can reply and write.
This was found in a code review.
Fix¶
- rep_repair_primary_object() marks the reply as sent, and execute_ctx()
does not answer an op that has its reply. - On the primary, an op that waits for a repair drops the result of its
run, and a second failed read does not put it in a second wait list.
Affected versions: main
KB Updated by Kyle Bader about 1 month ago
- Pull request ID set to 73177
KC Updated by Kefu Chai about 1 month ago
- Status changed from New to Fix Under Review
- Assignee set to Kyle Bader
KS Updated by Kamoltat (Junior) Sirivadhna 28 days ago
PR under review
Actions