-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Bug] pulsar-client-all 2.11.0 transitively bringing in log4j2 implementation #19484
Comments
The issue had no activity for 30 days, mark with Stale label. |
Thanks for reporting this issue. It seems we accidentally change log4j libs from test dep to compile dep. I'm looking into this one now. cc @Technoboy- @codelipenghui @eolivelli possible related release manager |
This seems a bookkeeper issue apache/bookkeeper@f0988dd#r106236889. We can force all log4j deps in test scope to workaround the case for now. |
The pollute path is: pulsar-client -> pulsar-common -> bookkeeper:cpu-affinity -> bookkeeper:parent |
…-client-all (#19937) (cherry picked from commit d14e43e) Ref - #19484 Signed-off-by: tison <[email protected]>
Fixed and cherry-picked to 2.11 at 2d8af31. |
Search before asking
Version
<not applicable>
2.11.0
Details
Problem
The
pulsar-client-all:2.11.0
dependency transitively includes Log4j2 (see here) rather than just the SLF4J api and logging bridge.Whereas the
pulsar-client-all:2.10.3
does NOT bring a logging impl in (see here).Symptoms
If the consuming app is already using a logger impl then a conflict can occur at startup (when using SLF4J) telling user to pick one or the other.
If the consuming application is not already using a logger impl then
pulsar-client-all
effectively chooses LOG4J2 for the app.What did you expect to see?
Adding the dependency
org.apache.pulsar:pulsar-client-all:2.11.0
should NOT transitively bring in the log4j2 implementation.What did you see instead?
Adding the dependency
org.apache.pulsar:pulsar-client-all:2.11.0
transitively DID bring in the log4j2 implementation.Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: