Skip to content

squid: mds,client: correct last_issue struct fields and consistently send last_issue in cap messages#61300

Merged
hkadam134 merged 7 commits intoceph:squidfrom
batrick:wip-68917-squid
Aug 21, 2025
Merged

squid: mds,client: correct last_issue struct fields and consistently send last_issue in cap messages#61300
hkadam134 merged 7 commits intoceph:squidfrom
batrick:wip-68917-squid

Conversation

@batrick
Copy link
Member

@batrick batrick commented Jan 9, 2025

backport tracker:


backport of #60283
parent tracker: https://tracker.ceph.com/issues/68515

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

A const getter already exists.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit a72b31e)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 7766d3c)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 6d8a734)
Originally, the last_sent sequence from the MDS was sent by the client during
bulk cap release but it was shortly after changed to the last_issue which is
the sequence number that the cap was originally "issued" by the MDS rank (which
may be updated after import of caps).

Fixes: 6208f57
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 655cddb)
The peer seq is used as the issue_seq. Use that name for consistency.

Fixes: 4fdeb00
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 1da6ef2)
Right now only the clients tell the MDS what they believe the issue_seq to be.
The clients are expected to figure out issue_seq updates at

Fixes: https://tracker.ceph.com/issues/68515
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit cb4ff28)
@batrick batrick added this to the squid milestone Jan 9, 2025
@batrick batrick added the cephfs Ceph File System label Jan 9, 2025
@batrick
Copy link
Member Author

batrick commented Jan 10, 2025

jenkins test api

@batrick batrick added the DNM label Feb 6, 2025
@batrick
Copy link
Member Author

batrick commented Feb 6, 2025

Credit to  Ilya Dryomov for spotting this.

[1] ceph#60283 (comment)

Fixes: 1da6ef2
Fixes: https://tracker.ceph.com/issues/68973
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit a07c5ef)
@batrick
Copy link
Member Author

batrick commented Mar 3, 2025

jenkins test api

@hkadam134
Copy link
Contributor

The PR is under test in https://tracker.ceph.com/issues/72364

@hkadam134
Copy link
Contributor

QA Runs are completed and failure analysed and updated the wiki -
https://tracker.ceph.com/issues/72364#note-5
@batrick - please review and provide ack

@hkadam134
Copy link
Contributor

@vshankar --

Patrick reviewed the QA Runs - https://tracker.ceph.com/issues/72364#note-6
the PR is ready to be merged. Need Approval

@hkadam134 hkadam134 merged commit b55ee9b into ceph:squid Aug 21, 2025
11 checks passed
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.

3 participants