Repository navigation
Conversation
…34479) Remove the log4j2 jars brought by the downloaded Spark distribution when they do not match the configured log4j2 version, otherwise a mixed log4j-api/log4j-core breaks the master. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2 tasks done
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A moderate active finding remains because the newly added stale Log4j JAR cleanup logic lacks default-build unit coverage proving that matching old files are removed.
1 open issue
What changed in this PR
Updates the Spark testing module to use Log4j 2.25.5 for CVE-2026-34479 mitigation and removes incompatible Log4j jars bundled with Spark.
Changes:
- Bumps the module-local
log4j2.versionfrom 2.17.2 to 2.25.5. - Removes stale
log4j-api,log4j-core, andlog4j-slf4j-impljars from the generated Spark library directory.
| File | Description |
|---|---|
| component-runtime-testing/component-runtime-testing-spark/src/main/java/org/talend/sdk/component/runtime/testing/spark/internal/BaseSpark.java | Removes incompatible Log4j jars from the generated Spark library directory before launching the test cluster. |
| component-runtime-testing/component-runtime-testing-spark/pom.xml | Updates the Spark testing module's Log4j version override to 2.25.5. |
Review effort: Lite
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Because this security-sensitive Log4j classpath change was only covered by module startup tests, with no full-reactor verification and distribution-specific jar-name compatibility still requiring human build and integration validation.
No open issues 🎉
1 resolved since last review
Review effort: Lite
ozhelezniak-talend
approved these changes
Nov 16, 2026
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


0 New Issues
0 Fixed Issues
0 Accepted Issues
Requirements
Why this PR is needed?
QTDI-3830: upgrade
org.apache.logging.log4j:log4j-coreto 2.25.5 incomponent-runtime-testing-spark(CVE-2026-34479). The rootpom.xmlis already on 2.25.5; this module overrideslog4j2.versionlocally (2.17.2).What does this PR adds (design/code thoughts)?
component-runtime-testing-spark/pom.xml:log4j2.version2.17.2 -> 2.25.5.BaseSpark: the log4j2 jars downloaded with the Spark distribution (2.20.0) were kept next to the configured version, causingNoSuchMethodError: ServiceLoaderUtil.loadServiceswhen the Spark master started. Stalelog4j-api,log4j-coreandlog4j-slf4j-impljars not matchinglog4j2Versionare now removed from the Spark lib folder.mvn test -pl component-runtime-testing/component-runtime-testing-sparkpasses (the two cluster tests start a real Spark master). Full reactormvn verifywas not run.AI generated code
https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code