chia7712 commented on PR #17576:
URL: https://github.com/apache/kafka/pull/17576#issuecomment-2452731618

   > Those old Kafka versions don't support JDK17. You need to run them with 
jdk8.
   
   Pardon me, is there any other issue, aside from 
[ZOOKEEPER-3779](https://issues.apache.org/jira/browse/ZOOKEEPER-3779), that 
prevents Kafka versions [2.1, 2.2, 2.3] from running on JDK 17?
   
   > ZK 3.5.7 is not compatible with Kafka 2.1 Please read 
[KIP-902](https://cwiki.apache.org/confluence/display/KAFKA/KIP-902%3A+Upgrade+Zookeeper+to+3.8.2)
   
   Do you mean Kafka versions [2.1, 2.2, 2.3] can't use the ZooKeeper 3.5.7 
client? If so, I didn't see that mentioned in KIP-902. Additionally, it seems 
that PR #6802, which upgraded ZooKeeper from 3.4.x to 3.5.x, didn't change the 
use of ZooKeeper APIs (except for running the ZooKeeper main, which is 
unrelated to the E2E compatibility test we're discussing).
   
   ---
   It seems to me that the root cause is the `ZK 3.4.x client`, which can't run 
under JDK 17 and `ZK 3.8.x server`. That's why I plan to replace the `ZK 3.4.x 
client` JAR with the `ZK 3.5.x client` JAR for Kafka versions [2.1, 2.2, 2.3] 
in E2E tests. This change would allow us to run the E2E tests under JDK 17 with 
a ZK 3.5+ server.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to