-
Notifications
You must be signed in to change notification settings - Fork 22
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
null service address on initial discovery #17
Comments
Check these threads about the config options for public address etc and interfaces hazelcast/hazelcast#9219 |
Thanks, I read through those and some other threads. They don't seem to explain why the server would be coming back as null though. It seems that the consul discovery spi code is finding the nodes:
After looking more closely at my consul output I can see that it ServiceAddress is blank.Here is the output of my curl command: curl http://localhost:8500/v1/catalog/service/orchis-hazelcast-replication
According to the consul doc, if ServiceAddress is empty node address should be used: https://www.consul.io/docs/agent/http/catalog.html#ServiceAddress I can see where the ServiceAddress is being used so I think that an empty string check is needed here to react to Consul's behavior here:
If you agree I can work on a PR. |
Please see the PR above for the fix...
|
Hello,
At discovery time the healthy nodes are found however the host (service.getServiceAddress()) is missing. This seems to be causing the registration to fail.
I am running the master branch of this repo and Consul v0.7.5.
Problem area seems to be here. Note that port 5701 shows up but there is no host which results in a null a little later:
Full log output
Any guess as to what is going on or what I should do to debug further?
Thanks!
The text was updated successfully, but these errors were encountered: