You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Slavik (Jira)" <ji...@apache.org> on 2023/08/19 01:49:00 UTC
[jira] [Comment Edited] (CURATOR-687) Upgrade Zookeeper to 3.9.0+
[ https://issues.apache.org/jira/browse/CURATOR-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17756211#comment-17756211 ]
Slavik edited comment on CURATOR-687 at 8/19/23 1:48 AM:
---------------------------------------------------------
When I tried to simply replace the Zookeeper version 3.7.1 with version 3.9.0, I got the error:
{noformat}
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/sfursov/code/curator/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java:[97,46] request has private access in org.apache.zookeeper.server.Request
[ERROR] /home/sfursov/code/curator/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java:[97,54] cannot find symbol
symbol: method duplicate()
location: variable request of type org.apache.zookeeper.server.RequestRecord {noformat}
That's the code it refers to:
[https://github.com/apache/curator/blob/ec7759317d3e0bcdc7d6220f01297dc522184b17/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java#L97]
The "request" field used to be public in Zookeeper 3.7.1:
[https://github.com/apache/zookeeper/blob/release-3.7.1/zookeeper-server/src/main/java/org/apache/zookeeper/server/Request.java#L81]
But is private in 3.9.0:
[https://github.com/apache/zookeeper/blob/release-3.9.0/zookeeper-server/src/main/java/org/apache/zookeeper/server/Request.java#L88]
The change was part of [https://github.com/apache/zookeeper/pull/1904]
was (Author: slavikca):
When I tried to simply replace the Zookeeper version 3.7.1 with version 3.9.0, I got the error:
{noformat}
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/sfursov/code/curator/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java:[97,46] request has private access in org.apache.zookeeper.server.Request
[ERROR] /home/sfursov/code/curator/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java:[97,54] cannot find symbol
symbol: method duplicate()
location: variable request of type org.apache.zookeeper.server.RequestRecord {noformat}
That's the code it refers to:
[https://github.com/apache/curator/blob/ec7759317d3e0bcdc7d6220f01297dc522184b17/curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/ChaosMonkeyCnxnFactory.java#L97]
> Upgrade Zookeeper to 3.9.0+
> ---------------------------
>
> Key: CURATOR-687
> URL: https://issues.apache.org/jira/browse/CURATOR-687
> Project: Apache Curator
> Issue Type: Task
> Reporter: Slavik
> Assignee: Enrico Olivelli
> Priority: Major
>
> Currently (Curator 5.5.0) uses Zookeeper 3.7.1, which brings 9+ CVEs:
> [https://mvnrepository.com/artifact/org.apache.zookeeper/zookeeper/3.7.1]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)