[
https://issues.apache.org/jira/browse/BOOKKEEPER-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228257#comment-15228257
]
Hudson commented on BOOKKEEPER-910:
-----------------------------------
FAILURE: Integrated in bookkeeper-master #1337 (See
[https://builds.apache.org/job/bookkeeper-master/1337/])
BOOKKEEPER-910: In LocalBookkeeper, Zookeeper server and client use (mmerli:
rev 19a5efe21ca0b33156a405f1084ddaa9ba4b28f5)
*
bookkeeper-server/src/main/java/org/apache/bookkeeper/util/LocalBookKeeper.java
* bookkeeper-server/src/test/java/org/apache/bookkeeper/test/ZooKeeperUtil.java
> In LocalBookkeeper, Zookeeper server and client use different host addresses
> ----------------------------------------------------------------------------
>
> Key: BOOKKEEPER-910
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-910
> Project: Bookkeeper
> Issue Type: Bug
> Components: bookkeeper-server
> Affects Versions: 4.3.2
> Reporter: Arun M. Krishnakumar
> Assignee: Arun M. Krishnakumar
> Priority: Minor
> Labels: easyfix
> Fix For: 4.4.0
>
> Attachments:
> 0001-Use-loopback-IP-address-for-Zookeeper-in-LocalBookke.patch
>
>
> In LocalBookkeeper, the Zookeeper server is started at 127.0.0.1 and the
> client tries to derive the localhost address using getLocalHost API. This has
> a few issues:
> 1. There is a possibility of using the ipv6 address for localhost and hence
> the client will try connecting to ::1, 2181 rather than 127.0.0.1:2181 (this
> happens commonly on OSX)
> 2. The getLocalHost API could sometimes return non-loopback addresses as well.
> Since the 'localbookie' mode is used with the zookeeper in the same machine,
> we should use loopback addresses for all invocations. The patch does just
> that.
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)