Project

General

Profile

Actions

Bug #82195

open
KB

osd: the nested read of a CALL runs the finisher of the request's first op

Bug #82195: osd: the nested read of a CALL runs the finisher of the request's first op

Added by Kyle Bader about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
EC Pools
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

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 Actions #1

  • Pull request ID set to 73178
Actions

Also available in: PDF Atom