Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite retries under particular conditions #2041

Merged
merged 3 commits into from
Jan 8, 2022

Conversation

tkountis
Copy link
Contributor

@tkountis tkountis commented Jan 5, 2022

Motivation:

When the new retrying http filter is applied under some particular conditions, the retry logic yields infinite attempts.

Modifications:

  • When the filter is appended conditionally, capture the instance to lazy inject LB/SD state.
  • Change the default max-total-retries to guard better LB/SD error flow.
  • Additional input validation for durations.

Result:

Safe retry behaviour.

@tkountis tkountis added the bug Something isn't working label Jan 5, 2022
@tkountis tkountis self-assigned this Jan 5, 2022
Motivation:

When the new retrying http filter is applied under some particular conditions, the retry logic yields infinite attempts.

Modifications:

- When the filter is appended conditionally, capture the instance to lazy inject LB/SD state.
- Change the default max-total-retries to guard better LB/SD error flow.
- Additional input validation for durations.

Result:

Safe retry behaviour.
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

LGTM after comments addressed. Thanks!

@tkountis tkountis merged commit e04a01a into apple:main Jan 8, 2022
@tkountis tkountis deleted the fix-retry-issues1 branch January 8, 2022 00:34
tkountis added a commit to tkountis/servicetalk that referenced this pull request Jan 8, 2022
Motivation:

When the new retrying http filter is applied under some particular conditions, the retry logic yields infinite attempts.

Modifications:

- When the filter is appended conditionally, capture the instance to lazy inject LB/SD state.
- Change the default max-total-retries to guard better LB/SD error flow.
- Additional input validation for durations.

Result:

Safe retry behavior.

(cherry picked from commit e04a01a)
tkountis added a commit that referenced this pull request Jan 8, 2022
Motivation:

When the new retrying http filter is applied under some particular conditions, the retry logic yields infinite attempts.

Modifications:

- When the filter is appended conditionally, capture the instance to lazy inject LB/SD state.
- Change the default max-total-retries to guard better LB/SD error flow.
- Additional input validation for durations.

Result:

Safe retry behavior.

(cherry picked from commit e04a01a)
tkountis added a commit to tkountis/servicetalk that referenced this pull request Jan 11, 2022
Motivation:

When the new retrying http filter is applied under some particular conditions, the retry logic yields infinite attempts.

Modifications:

- When the filter is appended conditionally, capture the instance to lazy inject LB/SD state.
- Change the default max-total-retries to guard better LB/SD error flow.
- Additional input validation for durations.

Result:

Safe retry behavior.
tkountis added a commit to tkountis/servicetalk that referenced this pull request Jan 11, 2022
Motivation:

When the new retrying http filter is applied under some particular conditions, the retry logic yields infinite attempts.

Modifications:

- When the filter is appended conditionally, capture the instance to lazy inject LB/SD state.
- Change the default max-total-retries to guard better LB/SD error flow.
- Additional input validation for durations.

Result:

Safe retry behavior.
tkountis added a commit to tkountis/servicetalk that referenced this pull request Jan 11, 2022
Motivation:

When the new retrying http filter is applied under some particular conditions, the retry logic yields infinite attempts.

Modifications:

- When the filter is appended conditionally, capture the instance to lazy inject LB/SD state.
- Change the default max-total-retries to guard better LB/SD error flow.
- Additional input validation for durations.

Result:

Safe retry behavior.
tkountis added a commit that referenced this pull request Jan 11, 2022
Motivation:

When the new retrying http filter is applied under some particular conditions, the retry logic yields infinite attempts.

Modifications:

- When the filter is appended conditionally, capture the instance to lazy inject LB/SD state.
- Change the default max-total-retries to guard better LB/SD error flow.
- Additional input validation for durations.

Result:

Safe retry behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants