-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Backoff retry mcp client #20114
Backoff retry mcp client #20114
Conversation
TestMirroring flake /test integ-pilot-k8s-tests_istio |
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.
Is this fixing a specific issue?
pilot/pkg/serviceregistry/synthetic/serviceentry/syntheticserviceentrycontroller.go
Outdated
Show resolved
Hide resolved
I am fixing a high latency issue in big scale when configs update qps is high. |
ebf5f47
to
c110054
Compare
@ayj @howardjohn This is ready now. |
ping @howardjohn @ayj i have rebased many times |
pilot/pkg/serviceregistry/synthetic/serviceentry/syntheticserviceentrycontroller.go
Outdated
Show resolved
Hide resolved
b0ca5f3
to
9ca1919
Compare
/retest |
// connect w/retry | ||
for { | ||
select { | ||
case <-ctx.Done(): | ||
return | ||
case <-time.After(retryDelay): | ||
case <-t.C: |
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.
It wouldn't hurt to call t.Stop()
here when the context is done. The ticker's finalizer calls Stop but that could happen arbitrarily in the future.
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.
LGTM. I've added a /hold to give you an opportunity to address/comment on the remaining comment. Please feel free to remove it when you're done.
@hzxuzhonghu: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
b54f4f5
to
db800d8
Compare
* use backoff to reconnect to mcp server * fix race * fix ayj's comment
EDIT: Make MCP client use backoff retry connect