-
Notifications
You must be signed in to change notification settings - Fork 564
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
Conversation
Signed-off-by: Rama Chavali <[email protected]>
🤔 🐛 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. |
|
||
// Flag to specify whether the retries should ignore previously tried hosts during retry. | ||
// Defaults to true. | ||
google.protobuf.BoolValue retry_ignore_previous_hosts = 5; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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/technical-oversight-committee can you PTAL? |
Looks ok to me. Can you fix the merge conflicts? |
Done |
/test release-notes |
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.