Bump SLF4J from 1.7.30 to 2.0.16.#33574
Conversation
The class path of slf4j has been changed from org/slf4j/impl to org/slf4j/jul. Two failed tests: - :runners:google-cloud-dataflow-java:worker:validateShadedJarContainsSlf4jJdk14 - :runners:google-cloud-dataflow-java:worker:validateShadedJarDoesntLeakNonProjectClasses
The failed tests are under org.apache.beam.runners.dataflow.worker.HotKeyLoggerTest
The previous version has a compile dependency on slf4j 1.x binding, which would no longer work with slf4j 2.x.
|
triggered a performance test: https://github.com/apache/beam/actions/runs/13145020125 |
|
r: @Abacn |
|
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment |
Abacn
left a comment
There was a problem hiding this comment.
Thanks! Had a few comments.
when it is ready to merge good to announce it in CHANGES.md
| } | ||
| } | ||
|
|
||
| project.tasks.withType(Test).configureEach { |
There was a problem hiding this comment.
why are they needed? tests currently using Java11 should be fine as https://openjdk.org/jeps/403 is enforced in Java16+ only.
Did you run tests on Java 17+ locally? If so did the test experience similar issue on master branch?
There was a problem hiding this comment.
I just took them out and triggered the tests again on github. Will see.
There was a problem hiding this comment.
Looks like the test is fine. However, still good to confirm
Did you run tests on Java 17+ locally? If so did the test experience similar issue on master branch?
| implementation library.java.slf4j_api | ||
| implementation library.java.spark_streaming | ||
| implementation library.java.spark_core | ||
| implementation library.java.spark3_streaming |
There was a problem hiding this comment.
let's move sparkreceiver/2 to sparkreceiver/3 or simply sparkreceiver/. The package name is unchanged so that release is unchanged.
There was a problem hiding this comment.
I sent an email to dev list regarding this change. I will wait a couple days to see if there is any objection or other suggestion.
|
Run Java PreCommit |
|
Run Java_Examples_Dataflow_Java21 PreCommit |
|
Java PreCommit testOnNewWorkerMetadata_redistributesBudget (org.apache.beam.runners.dataflow.worker.streaming.harness.FanOutStreamingEngineWorkerHarnessTest) failed due to #28957 not related to this change |
b50f03f to
7ab25e8
Compare
dad38fb to
c836281
Compare
c836281 to
935a637
Compare
|
Run Java_GCP_IO_Direct PreCommit |
|
Thanks @Abacn. The perf test runs successfully: https://github.com/apache/beam/actions/runs/13294385116/job/37122641048. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #33574 +/- ##
============================================
- Coverage 59.08% 59.08% -0.01%
- Complexity 3238 3239 +1
============================================
Files 1156 1155 -1
Lines 176924 176929 +5
Branches 3391 3392 +1
============================================
- Hits 104543 104540 -3
- Misses 69015 69023 +8
Partials 3366 3366
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Java PreCommit testOnNewWorkerMetadata_redistributesBudget failed not related to this change |
|
It breaks beam_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming and beam_PostCommit_Java_ValidatesRunner_Spark: https://github.com/apache/beam/actions/workflows/beam_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming.yml and https://github.com/apache/beam/commits/ea40d9e4db5092b96d4247c3f800267eee3debe8 |
|
This likely also broke PostCommit Java Hadoop Versions : https://github.com/apache/beam/actions/workflows/beam_PostCommit_Java_Hadoop_Versions.yml?page=2&query= |
|
same fix as #34123 should fix it |
* Update slf4j version * Remove slf4j from arrow dependency exclusion. * Fix two test failures due to upgrade slf4j-jdk14 to 2.x The class path of slf4j has been changed from org/slf4j/impl to org/slf4j/jul. Two failed tests: - :runners:google-cloud-dataflow-java:worker:validateShadedJarContainsSlf4jJdk14 - :runners:google-cloud-dataflow-java:worker:validateShadedJarDoesntLeakNonProjectClasses * Fixed another four failed tests. The failed tests are under org.apache.beam.runners.dataflow.worker.HotKeyLoggerTest * Bump the default spark version from 3.2.2 to 3.5.0. The previous version has a compile dependency on slf4j 1.x binding, which would no longer work with slf4j 2.x. * Add used but not declared deps for spark 3.5.0 * Temporary modify spark version to 3.x in sparkreceiver. * Fix failed spark tests. * A better workaround for Spark 3.2.x * Take out the add-opens for tests as they were only run in java 8 and 11. * Mention changes in CHANGES.md * Update comments * Move sparkReceiver/2 to sparkreceiver/3 that supports Spark 3.x. * Minor fix on cdap spark dependency
Upgrade SLF4J from 1.7.30 to 2.0.16.
Additional key changes: