Skip to content

mds: session reclaim could miss blocklisting an old session#66180

Merged
vshankar merged 1 commit intoceph:mainfrom
vshankar:wip-66003
Dec 5, 2025
Merged

mds: session reclaim could miss blocklisting an old session#66180
vshankar merged 1 commit intoceph:mainfrom
vshankar:wip-66003

Conversation

@vshankar
Copy link
Contributor

Credit to ymo zhang0 for the RCA and the fix.

This is due to a race between a client session close (which is retired by the MDS) and a session open sent by the client due to MDSMap update for the MDS state change. This results in the old session still holding the client uuid (in client metadata).

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

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.

Credit to ymo zhang[0] for the RCA and the fix.

This is due to a race between a client session close (which is
retired by the MDS) and a session open sent by the client due
to MDSMap update for the MDS state change. This results in the
old session still holding the client uuid (in client metadata).

[0]: https://tracker.ceph.com/issues/66003#note-8

Fixes: https://tracker.ceph.com/issues/66003
Signed-off-by: Venky Shankar <vshankar@redhat.com>
@vshankar vshankar requested a review from a team November 10, 2025 04:41
@vshankar vshankar added the cephfs Ceph File System label Nov 10, 2025
@vshankar
Copy link
Contributor Author

This PR is under test in https://tracker.ceph.com/issues/73938.

@vshankar
Copy link
Contributor Author

vshankar commented Dec 1, 2025

Need to retest with https://tracker.ceph.com/issues/74026

vshankar added a commit to vshankar/ceph that referenced this pull request Dec 2, 2025
* refs/pull/66180/head:

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
Copy link
Contributor Author

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

@vshankar vshankar merged commit 684e8c0 into ceph:main Dec 5, 2025
13 of 14 checks passed
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.

2 participants