[
https://issues.apache.org/jira/browse/ZOOKEEPER-4345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mohammad Arshad resolved ZOOKEEPER-4345.
----------------------------------------
Fix Version/s: 3.6.4
3.7.1
3.8.0
Resolution: Fixed
Issue resolved by pull request 1736
[https://github.com/apache/zookeeper/pull/1736]
> Avoid NoSunchMethodException caused by shaded
> ---------------------------------------------
>
> Key: ZOOKEEPER-4345
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4345
> Project: ZooKeeper
> Issue Type: Bug
> Reporter: Bo Cui
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.8.0, 3.7.1, 3.6.4
>
> Attachments: image-2021-08-07-17-30-42-883.png,
> image-2021-08-07-18-52-00-633.png
>
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> in OS Flink, flink relocate zk to
> org.apache.flink.shaded.zookeeper3.org.apache.zookeeper.*
> [https://github.com/apache/flink-shaded/blob/82f8bb3324864491dc62c4d3e27f1c1ccc49ac84/flink-shaded-zookeeper-parent/pom.xml#L68]
> the maven-shade-plugin changes all 'org.apache.zookeeper' to
> 'org.apache.flink.shaded.zookeeper3.org.apache.zookeeper'
> if JVM has -Dzookeeper.clientCnxnSocket=org.apache.zookeeper.*, and in shaded
> zk jar, will get NoSunchMethodException
> !image-2021-08-07-18-52-00-633.png!
> !image-2021-08-07-17-30-42-883.png!
> code:
> [https://github.com/apache/zookeeper/blob/9a5da5f9a023e53bf339748b5b7b17278ae36475/zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java#L3029]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)