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
Autowire should only use addresses that exist on an interface #6971
Milestone
Comments
Main effort of this issue would be in testing it. Will get with Chris to figure this out. |
maurizo
added a commit
that referenced
this issue
May 16, 2016
dsilvam
added a commit
that referenced
this issue
May 16, 2016
…ist-on-an-interface #6971 update dependencies to use the new ee jar
maurizo
added a commit
that referenced
this issue
May 27, 2016
PR core: #9101 |
I don't know if this is an issue or not but I still see this starting up dotCMS
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow-up to #6709
https://github.com/dotCMS/enterprise-2.x/blob/626f6b321d9aac6c52d0bc96b9ce947aa89a81c3/src/com/dotcms/enterprise/cluster/ClusterFactory.java#L241
InetAddress.getLocalHost() can use DNS resolution to find an IP matching the hostname depending on system name resolution (defaults to hosts file, then DNS). Due to DNS and other factors, this can return an address that does not exist on any interface and cache/ES binds will fail. We should be verifying that the address exists on an interface no matter what. If it doesn't exist, pick the first usable (non-local, non-link-layer) address from an interface.
http://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#getLocalHost()
"Returns the address of the local host. This is achieved by retrieving the name of the host from the system, then resolving that name into an InetAddress."
"Host name-to-IP address resolution is accomplished through the use of a combination of local machine configuration information and network naming services such as the Domain Name System (DNS) and Network Information Service(NIS). The particular naming services(s) being used is by default the local machine configured one."
Ran into this issue at http://jira.dotmarketing.net/browse/DOTCMSINC-1245
For testing we need to ensure that we can reproduce the issue. I think elastic cloud is the best place to do this. Let's get with @chrismccracken to help here.
@DeanGonzalez we need to doc the tested example here.
The text was updated successfully, but these errors were encountered: