ceph icon indicating copy to clipboard operation
ceph copied to clipboard

mds: wait snapupdate to finish before notifying to clients

Open lxbsz opened this issue 3 years ago • 2 comments

When making snapshot the MDS will notify the mds first and then the clients, but the other MDSes may get the notify late and just after the clients flush the snapcap to them. The MDSes will just drop the snapcap flush request to floor.

We need to wait for a while and make sure all the other MDSes get notifications first.

The same with rmsnap and renamesnap ops.

Fixes: https://tracker.ceph.com/issues/56011 Signed-off-by: Xiubo Li [email protected]

Contribution Guidelines

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
  • 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

lxbsz avatar Jun 20 '22 02:06 lxbsz

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

github-actions[bot] avatar Oct 11 '22 08:10 github-actions[bot]

Resolved the conflicts.

lxbsz avatar Oct 18 '22 06:10 lxbsz

jenkins test api

vshankar avatar Jan 30 '23 10:01 vshankar

jenkins test make check

lxbsz avatar Feb 28 '23 13:02 lxbsz

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

github-actions[bot] avatar Mar 13 '23 14:03 github-actions[bot]

@lxbsz this needs a rebase

dparmar18 avatar Apr 14 '23 14:04 dparmar18

@lxbsz this needs a rebase

Done. Thanks for reminding.

lxbsz avatar Apr 17 '23 01:04 lxbsz

When making snapshot the MDS will notify the mds first and then the clients, but the other MDSes may get the notify late and just after the clients flush the snapcap to them. The MDSes will just drop the snapcap flush request to floor.

I think "When creating snapshot, the primary MDS will notify other mds first ..." would sound better also "The other MDSs will just drop the snapcap flush request to the floor"

We need to wait for a while and make sure all the other MDSes get notifications first.

The same with rmsnap and renamesnap ops.

mchangir avatar Apr 17 '23 05:04 mchangir

When making snapshot the MDS will notify the mds first and then the clients, but the other MDSes may get the notify late and just after the clients flush the snapcap to them. The MDSes will just drop the snapcap flush request to floor.

I think "When creating snapshot, the primary MDS will notify other mds first ..." would sound better also "The other MDSs will just drop the snapcap flush request to the floor"

We need to wait for a while and make sure all the other MDSes get notifications first. The same with rmsnap and renamesnap ops.

Revised it and thanks @mchangir

lxbsz avatar Apr 17 '23 06:04 lxbsz

jenkins retest this please

lxbsz avatar May 04 '23 05:05 lxbsz

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

github-actions[bot] avatar May 22 '23 20:05 github-actions[bot]

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward. If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

github-actions[bot] avatar Jul 21 '23 21:07 github-actions[bot]

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward. If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

github-actions[bot] avatar Sep 25 '23 05:09 github-actions[bot]

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

github-actions[bot] avatar Oct 25 '23 05:10 github-actions[bot]

@lxbsz Please rebase and push - I'll try to have a look again.

vshankar avatar Jan 31 '24 08:01 vshankar

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward. If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

github-actions[bot] avatar Mar 31 '24 10:03 github-actions[bot]

@lxbsz please rebase. Will put this to test.

vshankar avatar Apr 10 '24 11:04 vshankar

@lxbsz please rebase. Will put this to test.

Sorry @vshankar I missed you last two comments about this. Rebased it now.

lxbsz avatar Apr 18 '24 03:04 lxbsz

jenkins retest this please

lxbsz avatar May 30 '24 04:05 lxbsz