-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Upgrade to log4j 2.25.1 #132166
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
base: main
Are you sure you want to change the base?
Upgrade to log4j 2.25.1 #132166
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
@elasticsearchmachine test this please |
@elasticmachine test this please |
Looks like this is suffering from apache/logging-log4j2#3437 |
Updating this having merged #132238 |
@breskeby is looking into the transitive dependency issue mentioned above, this needs further fixes / improvements in our build to be properly handled. |
Thanks for flagging this potential dependency concern. |
@Rassyan Can you rebase against latest master? I think some thirdparty check tasks will start failing with the update that probably need to be adjusted too. You should be able to reproduce those by running |
Hi @breskeby, Thanks for the pointer. I've rebased onto the latest main (which includes your #134169) and now encounter a dependency resolution failure when running ./gradlew precommit, even before applying my Log4j upgrade changes. The error occurs in the :benchmarks:compileJava configuration:
This suggests the new component metadata rules might be conflicting with the benchmarks project's dependency graph. Could this be the kind of third-party check failure you anticipated? I'm not sure what adjustments are needed here, as the issue seems related to the new dependency resolution setup. Could you please take a look when you have a moment? Thanks! |
can you run the build with --stacktrace? and share the output (maybe a bulid scan or share directly here). you likely need add the transitive provided dependencies now to the verification file in gradle/*. you can do that automatically by running the |
This comment was marked as outdated.
This comment was marked as outdated.
Thanks @mosche! 🙌 Just pushed the change. Really appreciate your guidance through this - it's been a great learning experience collaborating with you. Excited to see the test results! 🚀 |
@elasticmachine test this please |
@Rassyan could you run the test suites below, there's some more warnings.
Specifically |
Hi @mosche, I dug into In both versions, the warning
This level shift in 2.19.0 breaks I’m unsure whether we should suppress these warnings or address the listener behavior directly. Would you have any advice on how you’d like to proceed? I’m happy to help implement the right fix. Attached:
![]() ![]() ![]() |
That's a great find, thanks for digging into that! |
@elasticmachine test this please |
@elasticmachine test this please |
@elasticmachine test this please |
@elasticmachine test this please |
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 |
CI surfaced a log4j2 concurrency bug |
@Rassyan I do not see any changes to code owned by our team (kibana-security). I am guessing this was auto-triggered but no longer relevant, but wanted to check in with youy before I removed our team. Is there anything we should look at here? |
pending on this log4j2 fix apache/logging-log4j2#3955 |
Upgrade to log4j 2.25.1
closes #132035