Uploaded image for project: 'Bookkeeper'
  1. Bookkeeper
  2. BOOKKEEPER-910

In LocalBookkeeper, Zookeeper server and client use different host addresses

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.3.2
    • 4.4.0
    • bookkeeper-server
    • Patch

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              arunmk Arun M. Krishnakumar
              arunmk Arun M. Krishnakumar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: