-
Notifications
You must be signed in to change notification settings - Fork 183
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
[full-ci] fix: always select next gateway client #10133
Conversation
Should we do any docs in the readme about this? (imho yes) |
7d40647
to
8cd9176
Compare
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.
Looks ok to me. Please just remove the unused GetCS3apiClient method
I think we could reuse one selector per request. The PR gets a new selector each time we need to contact the gateway, which I'm not sure if it's a good idea. If we want to go this way, a helper method might keep the same complexity. For example, the |
Discussed that with @butonic we need to do it every time, because a pod can disappear between two requests. The „good“ solution will be using a client which can do the next selector by itself. |
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.
assuming tests pass
Quality Gate passedIssues Measures |
[full-ci] fix: always select next gateway client
Canceling this for now because it seems too much work for little gain. We'd need to implement the whole I've tried to include a retry policy in case of network errors so the next request would go to a different gateway, but it seems we don't have guarantees that the next request wouldn't go to the same gateway. Right now, the selector policy is random (we could still hit the same gateway), and even with a round robin policy, since the client is shared, concurrent requests could cycle through the clients, so the retried request might still go to the same gateway. |
We can just use the go micro client, which is already capable of doing that. And this also applies for http |
Description
Needed for #10123
@d7oc This is a very important bugfix for kubernetes environments.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: