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

add retry host predicate api #3432

Merged
merged 2 commits into from
Feb 22, 2025

Conversation

ramaraochavali
Copy link
Contributor

We removed retry host predicate via this PR istio/istio@3727b57 to fix a bug that is breaking consistent hash on retry. But there are some use cases which rely on this behaviour. So this PR is to propose an API for it with default to current behaviour and people can change if needed. This is similar to other retry plugin i.e. retryRemoteLocaliities.

Signed-off-by: Rama Chavali <[email protected]>
@ramaraochavali ramaraochavali requested a review from a team as a code owner February 4, 2025 14:56
@istio-policy-bot
Copy link

🤔 🐛 You appear to be fixing a bug in Go code, yet your PR doesn't include updates to any test files. Did you forget to add a test?

Courtesy of your friendly test nag.

@istio-testing istio-testing added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 4, 2025

// Flag to specify whether the retries should ignore previously tried hosts during retry.
// Defaults to true.
google.protobuf.BoolValue retry_ignore_previous_hosts = 5;
Copy link
Member

Choose a reason for hiding this comment

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

how about retry_previous_hosts, and make it false by default

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can. It seems little confusing to me. But fine either way

@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Feb 15, 2025
@ramaraochavali
Copy link
Contributor Author

@istio/technical-oversight-committee can you PTAL?

@keithmattix
Copy link
Contributor

Looks ok to me. Can you fix the merge conflicts?

@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Feb 22, 2025
@ramaraochavali
Copy link
Contributor Author

Done

@ramaraochavali ramaraochavali added the release-notes-none Indicates a PR that does not require release notes. label Feb 22, 2025
@ramaraochavali
Copy link
Contributor Author

/test release-notes

@istio-testing istio-testing merged commit e40a016 into istio:master Feb 22, 2025
5 checks passed
@ramaraochavali ramaraochavali deleted the fix/retry_hosts branch February 22, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes-none Indicates a PR that does not require release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants