Skip to content

Conversation

@hanishakoneru
Copy link
Contributor

The following dependency versions have known security vulnerabilities. We should update them to recent/ later versions.

  • Apache Thrift 0.11.0 (dependency of JaegerTracing)
  • Apache Zookeeper 3.4.13
  • Jetty Servlet 9.3.24

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hanishakoneru thanks for working on this. Unfortunately Jaeger upgrade requires further changes.

pom.ozone.xml Outdated
<jackson2.version>2.9.9</jackson2.version>

<!-- jaegertracing veresion -->
<jaeger.version>1.0.0</jaeger.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jaeger 1.0 depends on newer OpenTracing (0.33), which is not backwards compatible.

opentracing/opentracing-java#339
https://github.com/opentracing/opentracing-java#deprecated-members-since-031

hadoop-hdds-common compiles only due to explicit dependency on opentracing-util 0.31.0. However, it fails at runtime with NoSuchMethodError.

For the security fix I think it is enough to upgrade to Jaeger 0.34, which updated Apache Thrift to 0.12. Latest Jaeger Client release 0.35.2 should be OK, too, as it depends on OpenTracing 0.32, which still has the deprecated methods. In this case OpenTracing version should be changed to 0.32.0.

@hanishakoneru
Copy link
Contributor Author

Thank you @adoroszlai . I have updated the jaeger tracing version to 0.34.0.
Also removed the zookeeper dependency from ozone. Ozone does not need a direct dependency on zookeeper.

dependencyTree- Outdated
[INFO] +- io.dropwizard.metrics:metrics-core:jar:3.2.4:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- org.assertj:assertj-core:jar:3.8.0:test
[INFO] +- org.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file was added accidentally.

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hanishakoneru for the changes.

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM.
Thank You @hanishakoneru for the contribution and @adoroszlai for the review,

@bharatviswa504 bharatviswa504 merged commit a94aa1f into apache:trunk Sep 21, 2019
amahussein pushed a commit to amahussein/hadoop that referenced this pull request Oct 29, 2019
RogPodge pushed a commit to RogPodge/hadoop that referenced this pull request Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants