Skip to content

client: stop forwarding the request when exceeding 256 times - #45688

Merged
vshankar merged 1 commit into
ceph:masterfrom
xiubli:fwd
Apr 17, 2022
Merged

vshankar merged 1 commit into
ceph:masterfrom
xiubli:fwd

Conversation

@xiubli

@xiubli xiubli commented Mar 29, 2022 •

Copy link
Copy Markdown
Member

The type of 'num_fwd' in ceph 'MClientRequestForward' is 'int32_t',
while in 'ceph_mds_request_head' the type is '__u8'. So in case
the request bounces between MDSes exceeding 256 times, the client
will get stuck.

In this case it's ususally a bug in MDS and continue bouncing the
request makes no sense.

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

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

@github-actions github-actions Bot added the cephfs Ceph File System label Mar 29, 2022
@xiubli

xiubli commented Mar 29, 2022

Copy link
Copy Markdown
Member Author

Related to PR #45073

Comment thread src/client/Client.cc Resolved

@luis-henrix luis-henrix left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks good to me, as it seems to follow the same logic as the kernel client.

@xiubli

xiubli commented Mar 30, 2022

Copy link
Copy Markdown
Member Author

This looks good to me, as it seems to follow the same logic as the kernel client.

Yeah, correct. Thanks!

@ajarr

ajarr commented Mar 31, 2022

Copy link
Copy Markdown
Contributor

@lxbsz I see that the commit message is missing 'Fixes: https://tracker.ceph.com/issues/55129' can you please add that?

Comment thread src/client/Client.cc Resolved
@xiubli

xiubli commented Apr 1, 2022

Copy link
Copy Markdown
Member Author

@lxbsz I see that the commit message is missing 'Fixes: https://tracker.ceph.com/issues/55129' can you please add that?

Done. Thanks.

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

Thanks, Xiubo!

@vshankar

Copy link
Copy Markdown
Contributor

jenkins retest this please

The type of 'num_fwd' in ceph 'MClientRequestForward' is 'int32_t',
while in 'ceph_mds_request_head' the type is '__u8'. So in case
the request bounces between MDSes exceeding 256 times, the client
will get stuck.

In this case it's ususally a bug in MDS and continue bouncing the
request makes no sense.

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

xiubli commented Apr 14, 2022 •

Copy link
Copy Markdown
Member Author

Nothing changed and just rebased to the latest upstream code.

@vshankar

Copy link
Copy Markdown
Contributor

jenkins test make check

@vshankar

Copy link
Copy Markdown
Contributor

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

Labels

cephfs Ceph File System

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants