-
Notifications
You must be signed in to change notification settings - Fork 7
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
selectConnection gets called before addConnectionProvider in LoadBalancerActor #18
Comments
Hi @sjoerdmulder, What do you feel would be reasonable behavior? |
Yeah, last option is better since it's already returns a Future. Great project BTW! If you need any help or want a PR let me know. |
Hi @sjoerdmulder. I am now stashing GetConnection messages until the first consul query has been done. This means that you might still not get a connection if Consul isn't aware of it ofc. Please try the 0.4.0 snapshot. |
Cool, i have not yet had time to test will do this hopefully within couple of weeks for you. |
Hi @sjoerdmulder. I have given it some thought and have come to the conclusion that this feature has added far more complexity than it solves. In a next release, I will remove this feature in favor of advising people to use a retry mechanism from the outside. |
Ok, no problem. The problem is likely not happening in real code since the creation of |
Having the example new ServiceBroker and immediately call withService then the
selectConnection
is called on the LoadBalancerActor before the connection providers are added causing anServiceUnavailableException
exceptionExample:
The text was updated successfully, but these errors were encountered: