Skip to content

[Bug] pulsar-client-all 2.11.0 transitively bringing in log4j2 implementation #19484

@onobc

Description

@onobc

Search before asking

  • I searched in the issues and found nothing similar.

Version

  • OS: <not applicable>
  • Pulsar: 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?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

type/bugThe PR fixed a bug or issue reported a bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions