Skip to content

cephfs: session tracker accounts for killing sessions#62631

Merged
vshankar merged 1 commit intoceph:mainfrom
theanalyst:cephfs-session-tracker-fix
May 20, 2025
Merged

cephfs: session tracker accounts for killing sessions#62631
vshankar merged 1 commit intoceph:mainfrom
theanalyst:cephfs-session-tracker-fix

Conversation

@theanalyst
Copy link
Member

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

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

@github-actions github-actions bot added the cephfs Ceph File System label Apr 2, 2025
@theanalyst
Copy link
Member Author

An alternative is just to return in case sessions != 0 instead of asserting, not sure whether we can reach a state where the lone session is in a SESSION_OPENING state also

@theanalyst theanalyst requested review from batrick and vshankar April 7, 2025 07:13
@vshankar vshankar requested a review from a team April 7, 2025 12:48
@vshankar
Copy link
Contributor

vshankar commented Apr 7, 2025

@mchangir PTAL

Copy link
Contributor

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

LGTM.

@vshankar
Copy link
Contributor

jenkins test make check

@YBYQJY
Copy link

YBYQJY commented Apr 16, 2025

An alternative is just to return in case sessions != 0 instead of asserting, not sure whether we can reach a state where the lone session is in a SESSION_OPENING state also

I have encountered this case, the session is opening. I think this case needs to be covered as well.

@theanalyst
Copy link
Member Author

@vshankar should I add the SESSION_OPENING case also per last comment?

@vshankar
Copy link
Contributor

@vshankar should I add the SESSION_OPENING case also per last comment?

Fair enough. Please handle that case too.

Fixes: https://tracker.ceph.com/issues/70770
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@cern.ch>
@theanalyst theanalyst force-pushed the cephfs-session-tracker-fix branch from e4d0dc4 to bb52cb7 Compare April 22, 2025 09:32
@theanalyst
Copy link
Member Author

@vshankar should I add the SESSION_OPENING case also per last comment?

Fair enough. Please handle that case too.

Done

@vshankar
Copy link
Contributor

vshankar commented May 8, 2025

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

@vshankar
Copy link
Contributor

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

Suite run looks good. This will be merged soon.

Copy link
Contributor

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

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.

6 participants