mds: add MDS asok command for dumping stray directories#60684
mds: add MDS asok command for dumping stray directories#60684
Conversation
|
Looks like this needs to grab the mds_lock; I don't think anything is doing that automatically? |
joscollin
left a comment
There was a problem hiding this comment.
@salieri11 No qa test & doc updates for this?
|
Probably where |
|
jenkins retest this please |
|
jenkins test make check |
|
jenkins test dashboard |
requested changes have been implemented
e899bc4 to
7ea962b
Compare
|
@salieri11 I made some adjustments to your commit ordering, commit titles, removed a code comment / whitespace churn, and squashed a bug fix to your code. I mostly used |
Thanks, Patrick. Appreciate your help here. |
|
jenkins test make check arm64 |
7ea962b to
ed6867d
Compare
the rename makes the code consistent and allows to call the `MDSContext::finish` method from the `C_MDS_DumpStrayDirCtx::finish` method, which fortifies the safety of the new dump stray folder command. Signed-off-by: Igor Golikov <igolikov@ibm.com> Fixes: http://tracker.ceph.com/issues/56442
Signed-off-by: Igor Golikov <igolikov@ibm.com> Fixes: https://tracker.ceph.com/issues/56442
Signed-off-by: Igor Golikov <igolikov@ibm.com> Fixes: https://tracker.ceph.com/issues/56442
Fixes: https://tracker.ceph.com/issues/56442 Signed-off-by: Igor Golikov <igolikov@ibm.com>
ed6867d to
f858fa9
Compare
|
jenkins retest this please |
|
This PR is under test in https://tracker.ceph.com/issues/70394. |
@vshankar No related failures. Please check run wiki here https://tracker.ceph.com/projects/cephfs/wiki/QA_main_2025#wip-vshankar-testing-20250313072951-debug |
|
jenkins test dashboard |
|
jenkins test dashboard cephadm |
|
jenkins test rook e2e |
Looks good. |
This PR adds new MDS asok command
dump straywhich will dump the content of the stray folders in the MDS.
Current output:
[ "stray_inode": { "ino": "0x100000001f7", "stray_prior_path": "/dir/dir1", "client_caps": [ { "client_id": 4156, "pending": "pAsLsXsFscr", "issued": "pAsLsXsFscr", "wanted": "-", "last_sent": 3 } ], "loner": -1, "want_loner": -1, "mds_caps_wanted": [], "is_subvolume": false }, ]Fixes: https://tracker.ceph.com/issues/56442
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e