Closed kuro337 closed 8 months ago
Feel free to reach out if more info is required , would be glad to help!
We also have the same problem updating from 2.51 to 2.52.
It seems slf4j 1.7 shaded in beam-sdks-java-transform-service-launcher
jar is suddenly in conflict with slf4j 2 we have. I could not find why it does work with 2.51, that already had those shaded classes.
Our current solution is to depend on both logback-classic
1.4 (what we already had) and slf4j-simple
1.7 with a simplelogger.properties
file, just for Apache Beam logs.
Is the Beam team aware of this issue? This is a version upgrade blocker for people using the Beam SDK in a production environment.
Looks like this is related or caused by the shadowing reported in #29881
cc @Abacn
CC: @chamikaramj
What happened?
beam-sdks-java-io-kafka:2.52.0 Causing SLF4j Failures
Summary
2.52.0
implementation("org.apache.beam:beam-sdks-java-io-kafka:2.52.0")
- JAR has failures for SLF4j Affecting all logging backends2.51.0
Downgrading to
implementation("org.apache.beam:beam-sdks-java-io-kafka:2.51.0")
seems to resolve the issueErrors can be misleading and difficult to track the reason
Hello!
Wanted to report an observed bug - I realized when building a jar I kept seeing these errors at runtime :
After some digging and isolation - realized this package was causing the Failures
I am using
logback-classic
in my application and creating a JAR - and when I remove this package or downgrade toimplementation("org.apache.beam:beam-sdks-java-io-kafka:2.51.0")
- my logging works and theServiceLoader
error goes awayExample
build.gradle.kts
:Logs Working :
So logs work in all scenarios where these things have been tested - because the Error points toslf4j Docs that say this happens due to an issue with the following - which can be misleading
Hence have tried all combinations of the following settings -
So basically the error goes away when downgraded
But for latest version when used - introduces these failures
Other Information:
Gradle and Environment Info - (Also Tested on Linux Ubuntu)
JDK Info:
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components