Skip to content

test: Fix LibRadosIoECPP to flush write through before issuing direct reads - #72234

Merged
rzarzynski merged 1 commit into
ceph:mainfrom
bill-scales:issue80986
Oct 14, 2026
Merged

rzarzynski merged 1 commit into
ceph:mainfrom
bill-scales:issue80986

Conversation

@bill-scales

@bill-scales bill-scales commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

LibRadosIoECPP tries to measure how many I/O requests are issued when reading objects using direct reads to EC pools. If an object is read immediately after being written there is a race hazard because the Primary tells the client the write has completed at the same time it tells the other shards. If the client gets the completion and issues a read to the other shard and this arrives before the completion message from the Primary the other shard will bounce the read request with EAGAIN. This causes the test to fail because the bounced request cause an extra read request to read the data via the Primary.

Other test cases fix this by flushing through the write before issuing direct reads by calling ensure_log_committed. Move this function so it can be called by LibRadosIoECPP too.

Fixes: https://tracker.ceph.com/issues/80986

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

… reads

LibRadosIoECPP tries to measure how many I/O requests are issued when reading
objects using direct reads to EC pools. If an object is read immediately after
being written there is a race hazard because the Primary tells the client the
write has completed at the same time it tells the other shards. If the
client gets the completion and issues a read to the other shard and this
arrives before the completion message from the Primary the other shard will
bounce the read request with EAGAIN. This causes the test to fail because
the bounced request cause an extra read request to read the data via
the Primary.

Other test cases fix this by flushing through the write before issuing direct
reads by calling ensure_log_committed. Move this function so it can be called
by LibRadosIoECPP too.

Fixes: https://tracker.ceph.com/issues/80986

Signed-off-by: Bill Scales <[email protected]>
Assisted-by: IBM Bob 2.2.0

@JonBailey1993 JonBailey1993 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ljflores

Copy link
Copy Markdown
Member

Added "cephadm" since the bug originated in the orch suite. We should run that in addition to the rados suite.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath19-testing-20261002.123021-main.

@rkachach rkachach removed the cephadm label Oct 7, 2026
@rkachach

rkachach commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

@SrinivasaBharath could you plz include orch in teuthology run as well? Following test normally fails bcz of the same issue:

orch:cephadm/with-work/{0-distro/centos_9.stream fixed-2 mode/root mon_election/connectivity msgr/async start tasks/rados_api_tests}

see: https://pulpito.ceph.com/rkachach-2026-10-07_12:44:40-orch:cephadm-wip-rkachach-testing-2026-10-07-1110-distro-default-trial/614370/

@lee-j-sanders

Copy link
Copy Markdown
Member

@rzarzynski
rzarzynski merged commit 05a7656 into ceph:main Oct 14, 2026
21 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants