Skip to content

Commit

Permalink
ZOOKEEPER-1256: ClientPortBindTest is failing on Mac OS X (Camille vi…
Browse files Browse the repository at this point in the history
…a phunt)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1754582 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
phunt committed Jul 29, 2016
1 parent fa01aff commit beb1dd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Expand Up @@ -335,6 +335,9 @@ BUGFIXES:
ZOOKEEPER-2477: documentation should refer to Java cli shell and not
C cli shell (Abraham Fine via phunt)

ZOOKEEPER-1256: ClientPortBindTest is failing on Mac OS X
(Camille via phunt)

IMPROVEMENTS:
ZOOKEEPER-2024 Major throughput improvement with mixed workloads (Kfir Lev-Ari via shralex)

Expand Down
Expand Up @@ -60,8 +60,12 @@ public void testBindByAddress() throws Exception {
NetworkInterface i = intfs.nextElement();
if (i.isLoopback()) {
Enumeration<InetAddress> addrs = i.getInetAddresses();
if (addrs.hasMoreElements()) {
bindAddress = addrs.nextElement().getHostAddress();
while (addrs.hasMoreElements()) {
InetAddress a = addrs.nextElement();
if(a.isLoopbackAddress()) {
bindAddress = a.getHostAddress();
break;
}
}
}
}
Expand Down

0 comments on commit beb1dd6

Please sign in to comment.