[ 
https://issues.apache.org/jira/browse/SOLR-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir updated SOLR-4088:
------------------------------

    Attachment: SOLR-4088_unknown_host.patch

Here's the patch i'm testing locally.

The problem is when the host is configured as null, there are heuristics to 
guess how the host should be advertised.

basically the patch just handles the situation where the first heuristical 
method (resolving the hostname from the system) fails, which can happen, e.g. 
if DNS is not functioning.

In this case we just fall through to the logic below, of iterating interfaces.
                
> ZkController baseURL only get the host name not address, will occur can't get 
> the right URL to do recovery.   
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4088
>                 URL: https://issues.apache.org/jira/browse/SOLR-4088
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.0-ALPHA, 4.0-BETA, 4.0
>         Environment: Linux env
>            Reporter: Raintung Li
>            Assignee: Mark Miller
>             Fix For: 4.1, 5.0
>
>         Attachments: patch-4088.txt, SOLR-4088_unknown_host.patch
>
>
> In the ZKController.getHostAddress, it gets host name. In the linux, get 
> hostname from /etc/sysconfig/network or /etc/hostname that maybe not config 
> for ip address.
>  
> Other server can't access it(http://hostname:port/..) correctly that cause 
> recovery fail.
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to