-
Notifications
You must be signed in to change notification settings - Fork 316
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
IP resolver not updating IPs on failure #993
Comments
do you have any time to work on a fix ? |
So far I have not enough knowledge about jetcd, the changes done in #814 and how that works with grpc-java, to be able to design a solution. Update: Just saw that #814 did not change much beside the name. But the question is why jetcd needs own resolve logic. |
Added a potential fix here: #994 |
Because grpc-java does not provide a resolver that supports multiple hosts |
Thanks! I will test the PR in the next few days. |
Hi @lburgazzoli |
cool ! I'll write some unit test and then I can cut a release |
fixed by #994 |
Hi,
I use jetcd in an application that runs on kubernetes and connects to a 3-node ETCD cluster (also k8s).
When I scale down the ETCD cluster to 0 instances and then scale up again to 3,
jetcd client is not able to reconnect again to the ETCD cluster (healthy again).
The new ETCD pods on kubernetes get a new IP, and DNS names are updated and also resolve correctly within the JVM (when networkaddress.cache.ttl=10 is set).
But jetcd client still retries with the previous outdated IPs.
Debugging the logs, I thought the problem is related to grpc-java so I opened ticket grpc/grpc-java#8574 there, including further logs.
It looks like the IPresolver implementation of jetcd is not capable to update the IPs after failures.
Tested with jetcd 0.5.10
The text was updated successfully, but these errors were encountered: