AVRO-3304: Drop-in reload4j to mitigate log4j 1.x#1464
AVRO-3304: Drop-in reload4j to mitigate log4j 1.x#1464martin-g merged 1 commit intoapache:masterfrom
Conversation
|
A new version of Reload4j is coming: https://twitter.com/ceki/status/1483710574051696641 |
|
Merged! |
|
Can I ask what happens if Avro and its reload4j dependency is used with Hadoop an/or Spark that still have log4j(v1) dependencies? Presumably, you will just end up with 2 separate jar files and the classloader will randomly choose the classes from reload4j or log4g(v1) jars. It's possible that I've misinterpreted how the reload4j change will work in practice. |
|
Hi @pjfanning ! |
This is an alternative to #1458
That PR replaces the logging behind slf4j from log4j 1.x to slf4j-simple, while this PR drops in the reload4j replacement.
Both these solutions are "mitigation" solutions for current CVEs, while downstream projects still bring in log4j 1.x dependencies.
I've verified that the classes in the generated avro-tools uberjar are the reload4j replacements.
Jira
Tests
Commits
Documentation