Skip to content

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

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

vshankar merged 2 commits into
ceph:squidfrom
YiteGu:wip-64606-squid

Conversation

@YiteGu

@YiteGu YiteGu commented Jul 15, 2024

Copy link
Copy Markdown
Member

dparmar18 and others added 2 commits July 15, 2024 16:30
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 <[email protected]>
(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

YiteGu commented Jul 15, 2024

Copy link
Copy Markdown
Member Author

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

@YiteGu

YiteGu commented Jul 15, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

1 similar comment
@YiteGu

YiteGu commented Jul 16, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

@rishabh-d-dave

Copy link
Copy Markdown
Contributor

@YiteGu

YiteGu commented Sep 9, 2024

Copy link
Copy Markdown
Member Author

@vshankar vshankar 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.

@vshankar
vshankar merged commit 3e96485 into ceph:squid Nov 4, 2024
afreen23 pushed a commit to rhcs-dashboard/ceph that referenced this pull request Jul 29, 2026
squid: client: check mds down status before getting mds_gid_t from mdsmap

Reviewed-by: Venky Shankar <[email protected]>
Reviewed-by: Nizamudeen A <[email protected]>
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