Repository navigation
mds: update lock for snap MD ops to support multi-MDS scenario - #70905
Conversation
18bc7f0 to
05e09a1
Compare
| @@ -11935,7 +11931,7 @@ void Server::handle_client_snap_md_op(const MDRequestRef& mdr) | |||
| { | |||
| const cref_t<MClientRequest> &req = mdr->client_request; | |||
|
|
|||
| CInode* diri = rdlock_path_pin_ref(mdr, false, true); | |||
| CInode* diri = rdlock_path_pin_ref(mdr, true, false); | |||
There was a problem hiding this comment.
Nice catch, I guess this code projects inode and journals inode changes and that's an auth mds work? BTW no_want_auth is set false in func declaration. Keeping the uniformity with other calls -- explicit false can be dropped now.
fc48171 to
5d19add
Compare
|
jenkins test api |
|
@rishabh-d-dave - this bug is easy to reproduce. I did this in a vstart cluster. then ran a sample test: MDS crash backrtace So, w.r.t. change, the duplication of test code is somewhat which is can be improved. I suggest we do that as a separate effort as per #70905 (comment) For this fix, I will test it out locally and merged. Does that sound good? |
Yeah, we can reproduce it without these two configs as well. @vshankar
Yeah, I went with duplication instead of other alternatives to save time. In a later PR, I'll get rid of duplication in favour of a better alternative.
Cool. |
Sure. But for this PR, let's just keep the MDS fix. |
5d19add to
2958dc6
Compare
Done |
|
FYI: The bug could be reproduced with teuthology and without manual pining, client random MDS config and mds balance threshold config - https://pulpito.ceph.com/rishabh-2026-08-10_16:25:31-fs:functional-snap-md-op-multimds-bug-testing-default-trial/452618 QA run was successful for this PR - #70905 (comment) |
|
I have tested this change locally and it looks good and is good to merge. However, while testing I found a bug in the MDS where lookupsnap would return ESTALE. I am going to file for it. To reproduce it, run a snapshot related test from src/test/libcephfs/test.cc for 100 iterations (e.g.: ./bin/ceph_test_libcephfs --gtest_filter=LibCephFS.SnapInfo --gtest_repeat=100) and you hit an error in a random iteration: |
vshankar
left a comment
There was a problem hiding this comment.
I have tested this locally and the tests pass.
|
jenkins test api |
|
This PR has been added to main integration testing by vshankar started 2026-08-13-12:44. |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
Fixes: https://tracker.ceph.com/issues/78427
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 test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.