Skip to content

fix(bqjdbc): Log exception messages - part 2#12907

Merged
Neenu1995 merged 3 commits intomainfrom
ns/add-severe-logs
Apr 24, 2026
Merged

fix(bqjdbc): Log exception messages - part 2#12907
Neenu1995 merged 3 commits intomainfrom
ns/add-severe-logs

Conversation

@Neenu1995
Copy link
Copy Markdown
Contributor

@Neenu1995 Neenu1995 commented Apr 23, 2026

b/505826451

Fully Updated
The following files received end-to-end instrumentation (including direct throw upgrades):

  • BigQueryJdbcCustomLogger.java
  • BigQueryJdbcRootLogger.java
  • BigQueryBaseArray.java
  • BigQueryBaseStruct.java
  • BigQueryParameterHandler.java
  • BigQueryDriver.java
  • DataSource.java
  • BigQueryJdbcUrlUtility.java
  • BigQueryJdbcProxyUtility.java
  • BigQueryDaemonPollingTask.java
  • BigQueryDatabaseMetaData.java
  • BigQueryPreparedStatement.java
  • BigQueryBaseResultSet.java

Partially Updated
The following files received instrumentation only across catch boundaries (direct raw throws remain untouched):

  • BigQueryConnection.java
  • BigQueryStatement.java

@Neenu1995 Neenu1995 requested review from a team as code owners April 23, 2026 20:59
@Neenu1995 Neenu1995 changed the title fix(bqjdbc): Log exception messages(part 2) fix(bqjdbc): Log exception messages - part 2 Apr 23, 2026
Copy link
Copy Markdown
Contributor

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

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 enhances error logging across the BigQuery JDBC driver by ensuring exceptions are logged with their stack traces before being thrown. The changes refactor exception handling in various classes to capture and log exception details more effectively. Feedback identifies opportunities to improve the sequence of state checks in BigQueryBaseResultSet and to eliminate redundant string formatting in BigQueryJdbcProxyUtility and BigQueryJdbcUrlUtility by using the exception's message directly in the logging calls.

@Neenu1995 Neenu1995 enabled auto-merge (squash) April 24, 2026 14:18
@Neenu1995 Neenu1995 merged commit 5215b11 into main Apr 24, 2026
127 of 128 checks passed
@Neenu1995 Neenu1995 deleted the ns/add-severe-logs branch April 24, 2026 15:12
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Apr 24, 2026
**Fully Updated**
The following files received end-to-end instrumentation (including
direct throw upgrades):

- BigQueryJdbcCustomLogger.java
- BigQueryJdbcRootLogger.java
- BigQueryBaseArray.java
- BigQueryBaseStruct.java
- BigQueryParameterHandler.java
- BigQueryDriver.java
- DataSource.java
- BigQueryJdbcUrlUtility.java
- BigQueryJdbcProxyUtility.java
- BigQueryDaemonPollingTask.java
- BigQueryDatabaseMetaData.java
- BigQueryPreparedStatement.java
- BigQueryBaseResultSet.java

**Partially Updated** 
The following files received instrumentation only across catch
boundaries (direct raw throws remain untouched):

- BigQueryConnection.java
- BigQueryStatement.java
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.

2 participants