Commit 2e56184
authored
feat(bqjdbc): Integrate the PerConnectionFileHandler with BigQueryJdbcRootLogger (#12933)
- **BigQueryConnection.java:**
- Integrated the MdcCloseable pattern with try-with-resources across all
methods requiring MDC context.[b/501081433]
- Extracted rollbackImpl() and closeImpl() to separate business logic
from logging setup.
- Added connectionId generation in the constructor.[b/501081158]
- **BigQueryStatement.java:**
- Refactored public JDBC execution methods to use MdcCloseable and
extracted Impl methods (like executeQueryImpl).[b/501081433]
- **BigQueryJdbcMdc.java:**
- Added the MdcCloseable interface to support the try-with-resources
pattern.
- Update the Log Record format to inject the Connection-ID
tag.[b/501081558]
- **BigQueryJdbcRootLogger.java:**
- Integrated PerConnectionFileHandler for log isolation.[b/501081671]1 parent 93f21ed commit 2e56184
6 files changed
Lines changed: 431 additions & 333 deletions
File tree
- java-bigquery/google-cloud-bigquery-jdbc
- src
- main/java/com/google/cloud/bigquery/jdbc
- test/java/com/google/cloud/bigquery/jdbc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
0 commit comments