Update zookeeper version to fix CVEs#24403
Conversation
b819bf6 to
dc1cc7b
Compare
presto-accumulo/src/test/java/com/facebook/presto/accumulo/TestingAccumuloServer.java
Show resolved
Hide resolved
| <groupId>org.apache.zookeeper</groupId> | ||
| <artifactId>zookeeper</artifactId> | ||
| <version>3.4.14</version> | ||
| <version>3.9.3</version> |
There was a problem hiding this comment.
JFYI - We do have an upgrade to Kafka dependencies as a WIP too -#24382
It should not impact this PR (tests seem to pass) cc : @ZacBlanco
There was a problem hiding this comment.
@aaneja The test case failures in this PR will be resolved once the Kafka upgrade PR is merged. The failures occur because the ZooKeeper client used in our Kafka connector doesn’t support newer versions of ZooKeeper. However, since newer versions of Kafka have fully removed support for ZooKeeper, these failures will disappear after the Kafka upgrade
cc : @ZacBlanco @imjalpreet
|
Thanks for the release note! Suggest adding a little description of the work done in the PR ("Upgrade zookeeper to 3.9.3") that results in fixing the security vulnerabilities. |
c11877c to
ab4f9e5
Compare
@steveburnett Corrected. Please check |
aaneja
left a comment
There was a problem hiding this comment.
Please edit your commit message as per our guidelines https://github.com/prestodb/presto/wiki/Review-and-Commit-guidelines#example-commit-message. You can add the CVE id this addresses to the commit message
d72ddd1 to
78f9857
Compare
@aaneja modified the commit message by adding CVE id |
BryanCutler
left a comment
There was a problem hiding this comment.
Couple of small issues
presto-accumulo/src/test/java/com/facebook/presto/accumulo/TestingAccumuloServer.java
Outdated
Show resolved
Hide resolved
presto-accumulo/src/test/java/com/facebook/presto/accumulo/TestingAccumuloServer.java
Outdated
Show resolved
Hide resolved
d87373c to
71714c9
Compare
|
New release note guidelines as of last week: PR #24354 automatically adds links to this PR to the release notes. Please remove the manual PR link in the following format from the release note entries for this PR. I have updated the Release Notes Guidelines to remove the examples of manually adding the PR link. |
@steveburnett Corrected . Please check |
Looks good, thanks! |
|
Hi @bibith4, what's the plan for this PR? |
presto-accumulo/src/test/java/com/facebook/presto/accumulo/TestingAccumuloServer.java
Outdated
Show resolved
Hide resolved
presto-accumulo/src/test/java/com/facebook/presto/accumulo/TestingAccumuloServer.java
Outdated
Show resolved
Hide resolved
| import java.time.Duration; | ||
|
|
||
| import static java.lang.String.format; | ||
| public class TestingAccumuloServer |
There was a problem hiding this comment.
Can you explain why we're going this route vs updating the MiniAccumuloCluster? This seems like a lot of change just to support zookeeper. Is there an advantage to using this over mini accumulo cluster?
There was a problem hiding this comment.
@ZacBlanco We tried to address the vulnerability by upgrading the ZooKeeper version to 3.9.3. However, after the upgrade, the Accumulo test cases were failing because the ZooKeeper instance couldn't start. During our investigation, we found this pull request from Trino:
trinodb/trino#5598,
which uses Accumulo in Docker for unit testing. With this changes we tried running the tests using the presto-accumulo JAR, and they completed successfully.
0c25890 to
957d25c
Compare
9989846 to
aae0886
Compare
aae0886 to
e844c9b
Compare
Cherry-pick of trinodb/trino@f7a8471 Co-Authored-By: "Adam J. Shook" <shook@datacatessen.com>
e844c9b to
4b03b38
Compare
Description
Changes to upgrade zookeeper versions to 3.9.3 to remove vulnerabilities
Motivation and Context
The presto-accumulo, presto-delta,presto-hive,presto-kafka and presto-hudi have interdependencies with zookeeper version 3.4.14, which contain vulnerabilities. These vulnerabilities can be removed by upgrading the zookeeper dependency to 3.9.3
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.