Skip to content

fix(bigquery-jdbc): shade org.slf4j#13547

Open
logachev wants to merge 1 commit into
mainfrom
kirl/slf4j_shade
Open

fix(bigquery-jdbc): shade org.slf4j#13547
logachev wants to merge 1 commit into
mainfrom
kirl/slf4j_shade

Conversation

@logachev

Copy link
Copy Markdown
Contributor

Fix #13468

@logachev logachev requested review from a team as code owners June 24, 2026 00:32

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a relocation rule for the org.slf4j package to be shaded under com.google.bqjdbc.shaded.org.slf4j in the Maven configuration. Feedback indicates that shading org.slf4j will silence the JDBC driver's internal logging, as the host application's logging backend binds to the standard package, causing the relocated classes to default to a no-op logger.

Comment on lines +155 to +158
<relocation>
<pattern>org.slf4j</pattern>
<shadedPattern>com.google.bqjdbc.shaded.org.slf4j</shadedPattern>
</relocation>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Shading org.slf4j causes the JDBC driver's internal logging to be completely silenced. Because the host application's logging backend (e.g., Logback, Log4j2) binds to the standard org.slf4j package, the relocated com.google.bqjdbc.shaded.org.slf4j classes will fail to find a binding and default to a no-op logger (NOPLogger). This prevents users from capturing or configuring logs from the JDBC driver and its shaded dependencies (such as gRPC), which severely impacts troubleshooting and supportability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bigquery-jdbc] BigQuery Shader JDBC driver not shading SLF4J

1 participant