Skip to content

Conversation

@chenjian2664
Copy link
Contributor

@chenjian2664 chenjian2664 commented Jul 11, 2025

Introduces ConnectionAlreadyClosedException to signal attempts to
use closed JDBC connections. Updates LazyConnectionFactory to throw
this exception when a closed connection is accessed, and updates
JdbcPageSink to handle this exception without error

Description

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

## Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jul 11, 2025
@chenjian2664 chenjian2664 changed the title Suppress IllegalStateException when closing already closed JDBC con… Suppress IllegalStateException when closing closed JDBC connection Jul 11, 2025
@chenjian2664 chenjian2664 force-pushed the fix_connection_close branch from 0065339 to a843b94 Compare July 11, 2025 04:49
@chenjian2664 chenjian2664 marked this pull request as draft July 11, 2025 05:23
@chenjian2664 chenjian2664 force-pushed the fix_connection_close branch 3 times, most recently from b9892a6 to 9ab410b Compare July 13, 2025 13:53
@chenjian2664 chenjian2664 marked this pull request as ready for review July 14, 2025 07:28
@chenjian2664 chenjian2664 force-pushed the fix_connection_close branch from 9ab410b to 2859105 Compare July 15, 2025 00:35
Introduces `ConnectionAlreadyClosedException` to signal attempts to
use closed JDBC connections. Updates `LazyConnectionFactory` to throw
this exception when a closed connection is accessed, and updates
`JdbcPageSink` to handle this exception without error
@chenjian2664 chenjian2664 force-pushed the fix_connection_close branch from 2859105 to 05013c3 Compare July 16, 2025 07:08
@chenjian2664 chenjian2664 changed the title Suppress IllegalStateException when closing closed JDBC connection Handle already closed JDBC connections gracefully Jul 16, 2025
@ebyhr ebyhr merged commit 963d627 into trinodb:master Jul 16, 2025
63 checks passed
@github-actions github-actions bot added this to the 477 milestone Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants