-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
iceberg-aws-bundle jar includes org.slf4j.LoggerFactory #10534
Comments
@devinrsmith thanks for reporting this. Would you be interested in contributing a fix for this? |
This excludes `slf4j-api` from being shadowed into `iceberg-aws-bundle`, `iceberg-azure-bundle`, `iceberg-gcp-bundle`, and `iceberg-hive3-orc-bundle`. This uses the same exclude pattern established by `iceberg-bundled-guava`. Fixes apache#10534
@nastra Just submitted a PR, thanks. |
The general idea of |
Exclusions only work for transitively declared dependencies; in the case of the current |
Apache Iceberg version
1.5.2 (latest release)
Query engine
None
Please describe the bug 🐞
I noticed some strange logging issues after depending on
iceberg-aws-bundle
. After a bit of debugging, I found thaticeberg-aws-bundle
includes an unshadowedorg.slf4j.LoggerFactory
(and otherorg.slf4j
classes) in the jar:I understand the "shading" part of the story, but it does seem a bit odd to also bring in slf4j. Typically, I'd expect
iceberg-aws-bundle
to declare a dependency onslf4j-api
.Our application depends on, and is bootstrapped assuming slf4j 2.x (for example, we depend on the
ServiceLoader
mechanism for configuration, https://www.slf4j.org/faq.html#changesInVersion200).Normally, if a library we depend on declares a dependency on slf4j-api 1.x this isn't an issue since the public APIs are compatible https://www.slf4j.org/faq.html#compatibility. But, when both 1.x and 2.x are on the same classpath and 1.x "wins", our logging isn't able to initialize properly.
Was including
org.slf4j
internal to the bundled jar done on purpose?The text was updated successfully, but these errors were encountered: