Skip to content

client: stop retrying the request when exceeding 256 times#45728

Merged
vshankar merged 1 commit intoceph:masterfrom
lxbsz:wip-55144
May 24, 2022
Merged

client: stop retrying the request when exceeding 256 times#45728
vshankar merged 1 commit intoceph:masterfrom
lxbsz:wip-55144

Conversation

@lxbsz
Copy link
Member

@lxbsz lxbsz commented Mar 31, 2022

The type of 'retry_attempt' in 'MetaRequest' is 'int', while in
'ceph_mds_request_head' the type of 'num_retry' is '__u8'. So in
case the request retries exceeding 256 times, the MDS will receive
a incorrect retry seq.

In this case it's ususally a bug in MDS and continue retrying the
request makes no sense. For now let's limit it to 256. In future
this could be fixed in ceph code, so avoid using the hardcode here.

Fixes: https://tracker.ceph.com/issues/55144
Signed-off-by: Xiubo Li xiubli@redhat.com

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 lxbsz requested a review from a team March 31, 2022 09:11
@github-actions github-actions bot added the cephfs Ceph File System label Mar 31, 2022
@vshankar
Copy link
Contributor

jenkins retest this please

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.

@lxbsz
Copy link
Member Author

lxbsz commented May 16, 2022

jenkins retest this please

1 similar comment
@vshankar
Copy link
Contributor

jenkins retest this please

The type of 'retry_attempt' in 'MetaRequest' is 'int', while in
'ceph_mds_request_head' the type of 'num_retry' is '__u8'. So in
case the request retries exceeding 256 times, the MDS will receive
a incorrect retry seq.

In this case it's ususally a bug in MDS and continue retrying the
request makes no sense. For now let's limit it to 256. In future
this could be fixed in ceph code, so avoid using the hardcode here.

Fixes: https://tracker.ceph.com/issues/55144
Signed-off-by: Xiubo Li <xiubli@redhat.com>
@lxbsz
Copy link
Member Author

lxbsz commented May 23, 2022

Rebased it.

@vshankar
Copy link
Contributor

Rebased it.

guessing this was a rebase without any changes?

@lxbsz
Copy link
Member Author

lxbsz commented May 24, 2022

Rebased it.

guessing this was a rebase without any changes?

Correct.

@vshankar vshankar merged commit 90ff84d into ceph:master May 24, 2022
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