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

Chris Nauroth commented on ZOOKEEPER-1256:
------------------------------------------

That's the static 
[{{InetAddress#getLoopbackAddress()}}|http://docs.oracle.com/javase/7/docs/api/java/net/InetAddress.html#getLoopbackAddress()]
 method, right?  If so, then we shouldn't even need to operate on an instance 
of {{InetAddress}}.

Unfortunately, although this patch fixed the test on my Mac, this method was 
only introduced in JDK 1.7.  On the 3.4 line, we document support for "JDK 6 or 
greater".  I don't think we'd be able to commit this to branch-3.4, and the 
test fails for me there too.

Should we look specifically for an IPv4 loopback address?

> ClientPortBindTest is failing on Mac OS X
> -----------------------------------------
>
>                 Key: ZOOKEEPER-1256
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1256
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: tests
>         Environment: Mac OS X
>            Reporter: Daniel Gómez Ferro
>            Assignee: Flavio Junqueira
>             Fix For: 3.5.3, 3.6.0
>
>         Attachments: ClientPortBindTest.log, ZOOKEEPER-1256.patch, 
> ZOOKEEPER-1256.patch, ZOOKEEPER-1256.patch, ZOOKEEPER-1256v2.patch
>
>
> ClientPortBindTest is failing consistently on Mac OS X.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to