-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Remove legacy log4j-1.2 dependencies completely #132238
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pinging @elastic/es-core-infra (Team:Core/Infra) |
rjernst
approved these changes
Jul 31, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine test this please |
@elasticmachine test this please |
rjernst
pushed a commit
to rjernst/elasticsearch
that referenced
this pull request
Sep 1, 2025
This was referenced Sep 1, 2025
rjernst
pushed a commit
to rjernst/elasticsearch
that referenced
this pull request
Sep 1, 2025
rjernst
pushed a commit
to rjernst/elasticsearch
that referenced
this pull request
Sep 1, 2025
rjernst
pushed a commit
to rjernst/elasticsearch
that referenced
this pull request
Sep 1, 2025
elasticsearchmachine
pushed a commit
that referenced
this pull request
Sep 1, 2025
Co-authored-by: Rassyan <[email protected]>
elasticsearchmachine
pushed a commit
that referenced
this pull request
Sep 1, 2025
Co-authored-by: Rassyan <[email protected]>
elasticsearchmachine
pushed a commit
that referenced
this pull request
Sep 2, 2025
Co-authored-by: Rassyan <[email protected]> Co-authored-by: Moritz Mack <[email protected]>
elasticsearchmachine
pushed a commit
that referenced
this pull request
Sep 10, 2025
Co-authored-by: Rassyan <[email protected]>
sarog
pushed a commit
to portsbuild/elasticsearch
that referenced
this pull request
Sep 11, 2025
…stic#133934) Co-authored-by: Rassyan <[email protected]>
sarog
pushed a commit
to portsbuild/elasticsearch
that referenced
this pull request
Sep 19, 2025
…stic#133934) Co-authored-by: Rassyan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
auto-backport
Automatically create backport pull requests when merged
:Core/Infra/Logging
Log management and logging utilities
external-contributor
Pull request authored by a developer outside the Elasticsearch team
>non-issue
Team:Core/Infra
Meta label for core/infra team
v8.18.7
v8.19.4
v9.0.7
v9.1.4
v9.2.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem Analysis
After upgrading to Log4j 2.25.1 in #132166, the module dependency
requires org.apache.log4j
(from Log4j 1.2 era) causes boot failure:java.lang.module.FindException: Module org.apache.log4j not found, required by org.elasticsearch.security
This legacy dependency has no actual code references in the codebase (verified by full-text search). Retaining it would:
Solution
Completely remove the obsolete dependency declaration from:
x-pack/plugin/security/src/main/java/module-info.java
Validation
org.apache.log4j
in codebasemain
branch (Log4j 1.2 present)Critical Note
This is a prerequisite for #132166. Merging this first will unblock the Log4j upgrade.