Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIVE-28417: Bump Log4j2 to 2.24.3 #5636

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

InvisibleProgrammer
Copy link
Contributor

@InvisibleProgrammer InvisibleProgrammer commented Feb 5, 2025

This PR is based on #5375 (Thx linghengqian and @zhangbutao )

It upgrades log4j to 2.24.3

What changes were proposed in this pull request?

log4j to 2.24.3

Why are the changes needed?

apache/logging-log4j2#1391

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

Yes

How was this patch tested?

…M Native Image (apache#5375)(Ling Hengqian, reviewed by Raghav Aggarwal, Butao Zhang)

(cherry picked from commit 548990d)
@InvisibleProgrammer InvisibleProgrammer marked this pull request as ready for review February 11, 2025 08:42
@@ -367,9 +367,8 @@
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<artifactId>log4j-core-test</artifactId>

Choose a reason for hiding this comment

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

Why is it -test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change upgrades from 2.18.0 to 2.24.3.

Until 2.20.x, log4j-core provided the tests jar as well. That was the tests classifier that you see below. It was at line 372.

2.18 jars: https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.18.0/

At 2.20, they rearranged their packaging strategy. They started to provide different jar files and also, moved some namespaces as well.
The log4j-core-test artifact that you see means now we are using the artifact that log4j created to publish the test jars separately: https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/

Copy link
Contributor

@zhangbutao zhangbutao 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 Thanks @InvisibleProgrammer

I will keep this PR open for a few days & hope others who are interested in this PR give comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants