Bug #82195
openosd: the nested read of a CALL runs the finisher of the request's first op
0%
Description
PrimaryLogPG::do_osd_ops() keeps the finishers of the ops that went
async in OpContext::op_finishers, by the number of the op. A nested
call, such as the reads that a class method makes with cls_cxx_read,
numbers its own ops from 0, as for the request.
Take a request on a pool with EC optimizations that has a READ or a
CHECKSUM, and then a CALL that reads the object. When the async read
completes, the request runs again. In that run, the nested read of the CALL is op 0 too, and it
runs the finisher of the request's op 0. The class method then gets no
data.
Fix¶
A nested do_osd_ops() call keeps finishers of its own for the op that
made it, and gives the caller's loop its op number back.
The new librados test LibRadosMiscECPP.ClassReadAfterAsyncRead in
ceph_test_rados_api_misc_pp runs a CHECKSUM and then the hello class's
replay method, which reads the object.
Affected versions: main
KB Updated by Kyle Bader about 1 month ago
- Pull request ID set to 73178