Skip to content

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

Merged
vshankar merged 1 commit into
ceph:masterfrom
xiubli:wip-55144
May 24, 2022
Merged

vshankar merged 1 commit into
ceph:masterfrom
xiubli:wip-55144

Conversation

@xiubli

@xiubli xiubli commented Mar 31, 2022 •

Copy link
Copy Markdown
Member

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 [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

@xiubli
xiubli 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
Copy Markdown
Contributor

jenkins retest this please

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

@xiubli

xiubli commented May 16, 2022

Copy link
Copy Markdown
Member Author

jenkins retest this please

1 similar comment
@vshankar

Copy link
Copy Markdown
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 <[email protected]>
@xiubli

xiubli commented May 23, 2022

Copy link
Copy Markdown
Member Author

Rebased it.

@vshankar

Copy link
Copy Markdown
Contributor

Rebased it.

guessing this was a rebase without any changes?

@xiubli

xiubli commented May 24, 2022

Copy link
Copy Markdown
Member Author

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