Skip to content

squid: client: check mds down status before getting mds_gid_t from mdsmap#58587

Merged
vshankar merged 2 commits intoceph:squidfrom
YiteGu:wip-64606-squid
Nov 4, 2024
Merged

squid: client: check mds down status before getting mds_gid_t from mdsmap#58587
vshankar merged 2 commits intoceph:squidfrom
YiteGu:wip-64606-squid

Conversation

@YiteGu
Copy link
Member

@YiteGu YiteGu commented Jul 15, 2024

backport tracker: https://tracker.ceph.com/issues/64606


backport of #52258
parent tracker: https://tracker.ceph.com/issues/61844

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

dparmar18 and others added 2 commits July 15, 2024 16:30
…fails

Fixes: https://tracker.ceph.com/issues/64089
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 564dba3)
(cherry picked from commit e99486e)
Get mds_gid_t from up of MDSMap, will cause to core dump if target
mds_rank_t does not exist up map:

from: src/mds/MDSMap.h
  const auto& get_info(mds_rank_t m) const {
    return mds_info.at(up.at(m));
  }

reproduct:
1. ceph fs fail <fs_name>
2. curl -X GET "example.com:8080/api/cephfs/1/clients" ...
up.at(m) will cause to core dump.

Fixes: https://tracker.ceph.com/issues/61844
Signed-off-by: Yite Gu <yitegu0@gmail.com>
(cherry picked from commit 878463e)
@YiteGu YiteGu requested a review from a team as a code owner July 15, 2024 08:31
@YiteGu YiteGu requested review from avanthakkar and cloudbehl and removed request for a team July 15, 2024 08:31
@github-actions github-actions bot added this to the squid milestone Jul 15, 2024
@YiteGu
Copy link
Member Author

YiteGu commented Jul 15, 2024

backport PR create by ceph-backport.sh :) @nizamial09

@YiteGu
Copy link
Member Author

YiteGu commented Jul 15, 2024

jenkins test make check

1 similar comment
@YiteGu
Copy link
Member Author

YiteGu commented Jul 16, 2024

jenkins test make check

@rishabh-d-dave
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/67948.

@YiteGu
Copy link
Member Author

YiteGu commented Sep 9, 2024

This PR is under test in https://tracker.ceph.com/issues/67948.

thanks @rishabh-d-dave

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vshankar vshankar merged commit 3e96485 into ceph:squid Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants