[ 
https://issues.apache.org/jira/browse/SOLR-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539582#comment-13539582
 ] 

Mark Miller edited comment on SOLR-4088 at 12/26/12 4:20 PM:
-------------------------------------------------------------

Robert just mentioned to me that this can cause a problem in tests - sometimes 
a host cannot be found depending on your network connectivity and setup.

Makes this kind of difficult to test...but most tests could go to something 
else - we could explicitly set the host to 127.0...or we could fail back to the 
previous detection method if this new one fails? Or we could do both.

I'm not sure what we should do to test this specific detection method though.
                
      was (Author: markrmil...@gmail.com):
    Robert just mentioned to me that this can cause a problem in tests - 
sometimes a host cannot be found depending on your network connectivity and 
setup.

Makes this kind of difficult to test...but most tests go could something else - 
we could explicitly set the host to 127.0...or we could fail back to the 
previous detection method if this new one fails? Or we could do both.
                  
> 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
>
>
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to