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.
[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
- causes
-
SPARK-34110 Upgrade ZooKeeper to 3.6.2
- Resolved
-
ORC-733 Upgrade Zookeeper from 3.4.x to 3.6.2
- Closed