Skip to content

libcephfs/client: ceph_readdirplus_r() skips entry at a dirfrag hash boundary - #71075

Merged
vshankar merged 1 commit into
ceph:mainfrom
sajibreadd:wip-79517
Sep 8, 2026
Merged

vshankar merged 1 commit into
ceph:mainfrom
sajibreadd:wip-79517

Conversation

@sajibreadd

@sajibreadd sajibreadd commented Aug 16, 2026 •

Copy link
Copy Markdown
Member

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

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.

…boundary

When the MDS advertises CEPH_READDIR_HASH_ORDER, buffered entries use
hash-formatted offsets while the directory cursor may remain in fragment
format. This can cause an entry at a fragment boundary to be skipped.
Set the hash-order marker when decoding the reply so the cursor and
buffered entries use the same offset format.
Fixes: https://tracker.ceph.com/issues/79517
Signed-off-by: Md Mahamudur Rahaman Sajib <[email protected]>
@github-actions github-actions Bot added the cephfs Ceph File System label Aug 16, 2026
@sajibreadd sajibreadd changed the title libcephfs/client: ceph_readdirplus_r() skips entry at a dirfrag hash … libcephfs/client: ceph_readdirplus_r() skips entry at a dirfrag hash boundary Aug 16, 2026
@sajibreadd
sajibreadd requested review from a team, ifed01 and vshankar August 16, 2026 13:58
@dparmar18

Copy link
Copy Markdown
Contributor

if this is reproducible, having a test case would be good.

@sajibreadd

sajibreadd commented Aug 19, 2026 •

Copy link
Copy Markdown
Member Author

if this is reproducible, having a test case would be good.

Unfortunately I reproduced it with extreme split and merge churn condition. It will very hard to reproduce it with a unit test.

In the tracker you can check the log and I shared some insights and from the code perspective it looks pretty evident.

After the fix I can share the logs, which fixed the bug.

@vshankar vshankar 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.

Fix seems correct. Good catch!

@vshankar

vshankar commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by vshankar started 2026-09-02-13:52.

@vshankar vshankar 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants