Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3779

Zookeeper client 3.4.x fails to connect when using Java 14

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.14
    • None
    • None
    • None
    • Java 14

    Description

      When running on Java 14, the 3.4.x version of `org.apache.zookeeper.Zookeeper` which creates a client to connect to a Zookeeper server, fails to connect against the server.

      This appears to be due to the use of `InetSocketAddress.toString()` to parse the host name of an unresolved address in StaticHostProvider[1]. The issue doesn't show up in 3.5.x versions of Zookeeper. But given that 3.4.x isn't that old, I thought I'll raise this here and see if it can be fixed and whether a new 3.4.x release is warranted.

      Furthermore, there was a discussion here[2] which explains the whole details. There's even a discussion in the openjdk net-dev mailing list[3] to see if there are other similar usages in Zookeeper which might be impacted by this change in the JDK 14. I don't have any real experience with this library, so if someone more knowledgable knows whether or not there are other similar usages in this project, please do reply to the net-dev discussion on the openjdk mailing list.

       

       [1] https://github.com/apache/zookeeper/blob/branch-3.4.14/zookeeper-server/src/main/java/org/apache/zookeeper/client/StaticHostProvider.java#L135

      [2] https://github.com/quarkusio/quarkus/issues/8212#issuecomment-605403656

      [3] https://mail.openjdk.java.net/pipermail/net-dev/2020-March/013725.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jaikiran Jaikiran Pai
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: