Skip to content

fix(bigquery-jdbc): poll the JSON reference queue and release processed finalizers - #14719

Merged
Neenu1995 merged 11 commits into
mainfrom
neenu/fix-json-resource-cleanup
Oct 22, 2026
Merged

Neenu1995 merged 11 commits into
mainfrom
neenu/fix-json-resource-cleanup

Conversation

@Neenu1995

@Neenu1995 Neenu1995 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

b/524270586

@Neenu1995
Neenu1995 requested review from a team as code owners October 21, 2026 18:41

@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 refactors the JDBC driver's logging and garbage collection daemon to prevent memory and resource leaks. Specifically, it changes several 'BigQueryJdbcCustomLogger' instances to static fields to avoid registering excessive child loggers, and refactors 'BigQueryDaemonPollingTask' to use instance-specific reference queues and finalizer lists. Feedback on the changes highlights a potential issue where an unchecked exception thrown during resource finalization could silently terminate the daemon thread, leading to permanent resource leaks; wrapping the loop's body in a 'try-catch-finally' block is recommended to ensure the thread remains alive and references are always cleared.

@Neenu1995
Neenu1995 changed the base branch from main to neenu/fix-logger-leak October 21, 2026 19:00
@Neenu1995
Neenu1995 requested review from a team as code owners October 21, 2026 19:00
@logachev

Copy link
Copy Markdown
Contributor

Note that this PR is not targeting main branch

Base automatically changed from neenu/fix-logger-leak to main October 22, 2026 00:35
@Neenu1995
Neenu1995 merged commit 1b7d00d into main Oct 22, 2026
199 checks passed
@Neenu1995
Neenu1995 deleted the neenu/fix-json-resource-cleanup branch October 22, 2026 13:36
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