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

Merged
merged 1 commit into from
Feb 24, 2025

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.

@InvisibleProgrammer
Copy link
Contributor Author

Hi @zhangbutao ,
Thank you for the review. Can I ask you to submit this PR?

Thanks,
Zsolt

@zhangbutao zhangbutao merged commit 92a5335 into apache:master Feb 24, 2025
6 checks passed
deniskuzZ added a commit to deniskuzZ/hive that referenced this pull request Mar 3, 2025
…, Zsolt Miskolczi,reviewed by Raghav Aggarwal, Butao Zhang) (apache#5636)"

This reverts commit 92a5335.
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.

None yet

5 participants