Skip to content

mds: try to choose a new batch head in request_clientup() - #57553

Merged
batrick merged 2 commits into
ceph:mainfrom
xiubli:wip-66124
Jun 4, 2024
Merged

batrick merged 2 commits into
ceph:mainfrom
xiubli:wip-66124

Conversation

@xiubli

@xiubli xiubli commented May 20, 2024 •

Copy link
Copy Markdown
Member

This will happen only for the client requests, not peer requests.
The 'mdr->killed' and 'mdr->dead' will always be set at the same
time when killing the client requests.

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

Checklist

  • Tracker (select at least one)
    • References tracker ticket
  • Component impact
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • No doc update is appropriate
  • Tests (select at least one)
    • No tests
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@xiubli
xiubli requested review from a team, batrick, leonid-s-usov and vshankar May 20, 2024 04:24
@github-actions github-actions Bot added the cephfs Ceph File System label May 20, 2024
@rishabh-d-dave

Copy link
Copy Markdown
Contributor

@lxbsz Signed-off-by line is missing for commit Revert "mds: find a new head for the batch ops when the head is dead"

@xiubli

xiubli commented May 20, 2024

Copy link
Copy Markdown
Member Author

@lxbsz Signed-off-by line is missing for commit Revert "mds: find a new head for the batch ops when the head is dead"

@rishabh-d-dave Done. Thanks!

Comment thread src/mds/MDCache.cc Resolved
Comment thread src/mds/MDCache.cc Resolved

@leonid-s-usov leonid-s-usov 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.

Unlike in the old places, in the request_cleanup we should move on to the cleanup after we choose a new batch head, shouldn't we?

This will happen only for the client requests, not peer requests.
The 'mdr->killed' and 'mdr->dead' will always be set at the same
time when killing the client requests.

Fixes: https://tracker.ceph.com/issues/66124
Signed-off-by: Xiubo Li <[email protected]>
@xiubli

xiubli commented May 20, 2024

Copy link
Copy Markdown
Member Author

Unlike in the old places, in the request_cleanup we should move on to the cleanup after we choose a new batch head, shouldn't we?

BTW, what cleanup ? Could you point it out ?

@leonid-s-usov

Copy link
Copy Markdown
Contributor

Unlike in the old places, in the request_cleanup we should move on to the cleanup after we choose a new batch head, shouldn't we?

BTW, what cleanup ? Could you point it out ?

well, everything below your new block in the request_cleanup method, starting with the line https://github.com/ceph/ceph/pull/57553/files#diff-ea7cb1a6ba9fa08363b14dd00a86bc6b79e01673e93af84ffdfcdbd0d3f26b19R9956 and until the end

@xiubli

xiubli commented May 20, 2024

Copy link
Copy Markdown
Member Author

Unlike in the old places, in the request_cleanup we should move on to the cleanup after we choose a new batch head, shouldn't we?

BTW, what cleanup ? Could you point it out ?

well, everything below your new block in the request_cleanup method, starting with the line https://github.com/ceph/ceph/pull/57553/files#diff-ea7cb1a6ba9fa08363b14dd00a86bc6b79e01673e93af84ffdfcdbd0d3f26b19R9956 and until the end

Currently doesn't it what you mean ?

request_cleanup() {
   1, choose new batch head
   2, cleanup
}

Or do you mean we should :

request_cleanup() {
   1, cleanup
   2, choose new batch head
}

???

@leonid-s-usov

leonid-s-usov commented May 20, 2024 •

Copy link
Copy Markdown
Contributor

No no, with your latest update, it's all good. Sorry for the confusion. I commented on the code lines but I also had to leave the general review comment because it wouldn't allow me to submit it otherwise - so I just rephrased the same thing.

@batrick

batrick commented May 28, 2024

Copy link
Copy Markdown
Member

@batrick

batrick commented May 28, 2024

Copy link
Copy Markdown
Member

jenkins test make check

@batrick

batrick commented May 28, 2024

Copy link
Copy Markdown
Member

jenkins test make check arm64

@batrick

batrick commented May 30, 2024

Copy link
Copy Markdown
Member

jenkins test make check

@batrick

batrick commented Jun 4, 2024

Copy link
Copy Markdown
Member

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants