Project

General

Profile

Actions

Bug #80986

closed
LF BS

LibRadosIoECPP test failure: Perf counter 'objecter.op_reply' has incorrect value after operate()

Bug #80986: LibRadosIoECPP test failure: Perf counter 'objecter.op_reply' has incorrect value after operate()

Added by Laura Flores 2 months ago. Updated about 1 month ago.

Status:
Backporting
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-4449-g05a7656731
Released In:
Upkeep Timestamp:
2026-10-14T19:48:22+00:00

Description

/a/rkachach-2026-09-24_08:15:57-orch:cephadm-wip-rkachach-testing-2-2026-09-23-2352-distro-default-trial/579039

2026-09-24T08:47:16.147 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp: [ RUN      ] LibRadosIoECPPParamCombination/LibRadosIoECPP.ZeroAndTruncateSameRequest/3
2026-09-24T08:47:16.147 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp: /ceph/rpmbuild/BUILD/ceph-21.3.0-3465-gb54e766e/src/test/librados/io_cxx.cc:1204: Failure
2026-09-24T08:47:16.147 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp: Value of: AssertOperateWithSplitOp(0, expected_ops, oid, &op, &bl, balanced_read_flags)
2026-09-24T08:47:16.147 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp:   Actual: false (Perf counter 'objecter.op_reply' has incorrect value after operate().
2026-09-24T08:47:16.147 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp:        Expected: 2         Actual: 3)
2026-09-24T08:47:16.147 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp: Expected: true
2026-09-24T08:47:16.147 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp:
2026-09-24T08:47:16.148 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp: [  FAILED  ] LibRadosIoECPPParamCombination/LibRadosIoECPP.ZeroAndTruncateSameRequest/3, where GetParam() = (true, true) (6998 ms)
2026-09-24T08:47:16.148 INFO:tasks.workunit.client.0.trial072.stdout:                api_io_pp: [----------] 76 tests from LibRadosIoECPPParamCombination/LibRadosIoECPP (43385 ms total)


Related issues 1 (1 open — 0 closed)

Copied to RADOS - Backport #81781: umbrella: LibRadosIoECPP test failure: Perf counter 'objecter.op_reply' has incorrect value after operate()Fix Under ReviewBill Scales

Actions

LF Updated by Laura Flores 2 months ago Actions #1

  • Assignee set to Bill Scales

@Bill Scales WDYT?

I see that this test was introduced in https://github.com/ceph/ceph/commit/9d6941f911b2701cb463a96290961c22f77c42cf, but perhaps there was a subsequent change to the perf counter that caused a regression.

BS Updated by Bill Scales 2 months ago Actions #2

This is a race hazard in the test case, not a regression in the code. Because its a race hazard not every run of the test will fail.

Looking at the logs we can see that there were 3 I/Os issued for this read instead of the expected 2:

osd.0.log 2026-09-24T08:47:08.140+0000 7f0debaff6c0 10 osd.0 pg_epoch: 101 pg[205.2s0
zero_trunc_8k:head [read 0~8192,get-internal-versions]
zero_trunc_8k:head [read 0~8192]

osd.6.log:2026-09-24T08:47:08.141+0000 7f30a85c46c0 10 osd.6 pg_epoch: 101 pg[205.2s1
zero_trunc_8k:head [read 0~8192,get-internal-versions]

and this in osd.6.log:

6.log:

do_op osd_op(client.25096.0:350 205.2s1 205:4c44b037:test-rados-api-trial072-76600-106::zero_trunc_8k:head [read 0~8192,get-internal-versions] ...
...
PeeringState::can_serve_read can't read object on this shard
do_op_impl: unstable write on shard, bouncing to primary osd_op(client.25096.0:350 205.2s1 205:4c44b037:test-rados-api-trial072-76600-106::zero_trunc_8k:head [read 0~8192,get-internal-versions] snapc 0=[] ondisk+read+>
-11 ((11) Resource temporarily unavailable)) -- 0x565072448240 con 0x5650710b4000

What happened:

1. The I/O was correctly split and direct reads were issued to OSD 0 and OSD 6 (the expected 2 I/Os)
2. OSD 6 failed the read because it still had a previous write in flight
3. Objecter correctly re-issues the whole read to the Primary OSD (0) (the unexpected 3rd I/O)

The race hazard is that the Primary completes the write to the client once it knows all OSDs have applied the update, but before all clients have completed the update. There is a race between the Primary sending the completion messages (in the case of EC this is the "dummy op") and the Client issuing the next read I/O.

Fix is to modify the test case to issue a write to another object before issuing the read (something similar to stabalize_pg_log added in https://github.com/ceph/ceph/pull/70207/changes). This additional write to the same PG will ensure the previous write is flushed through to completion.

BS Updated by Bill Scales 2 months ago Actions #3

  • Status changed from New to Fix Under Review
  • Backport set to umbrella
  • Pull request ID set to 72234

LF Updated by Laura Flores 2 months ago Actions #4

PR sent to QA.

LF Updated by Laura Flores about 2 months ago Actions #5

PR added to a QA batch.

AL Updated by Adam Lyon-Jones about 2 months ago Actions #6

/a/skanta-2026-10-03_22:27:10-rados-wip-bharath5-testing-20261003.131043-main-distro-default-trial/605192

MW Updated by Matty Williams about 2 months ago Actions #8

/a/skanta-2026-09-30_04:36:41-rados-wip-bharath14-testing-20260930.003013-main-distro-default-trial/593594

LF Updated by Laura Flores about 2 months ago Actions #9

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot about 2 months ago Actions #10

  • Copied to Backport #81781: umbrella: LibRadosIoECPP test failure: Perf counter 'objecter.op_reply' has incorrect value after operate() added

UB Updated by Upkeep Bot about 2 months ago Actions #11

  • Status changed from Pending Backport to Backporting
  • Upkeep Timestamp set to 2026-10-14T19:47:00+00:00

UB Updated by Upkeep Bot about 2 months ago Actions #12

  • Merge Commit set to 05a7656731302ec52717de0c7f813bc44402f237
  • Fixed In set to v21.3.0-4449-g05a7656731
  • Upkeep Timestamp changed from 2026-10-14T19:47:00+00:00 to 2026-10-14T19:48:22+00:00

AL Updated by Adam Lyon-Jones about 1 month ago Actions #13

/a/skanta-2026-10-12_23:32:34-rados-wip-bharath20-testing-20261012.132505-main-distro-default-trial
1 jobs: ['631086']

Actions

Also available in: PDF Atom