pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feedFrom: vlsi (@vlsi) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: [pgjdbc/pgjdbc] PR #3960: fix: release COPY lock on IOException to prevent connection hang (#3957)
Date: Fri, 13 Mar 2026 17:16:37 +0000
Message-ID: <[email protected]> (raw)
When an IOException occurs during COPY operations (endCopy, writeToCopy, flushCopy, readFromCopy), the COPY lock was not released, causing all subsequent operations on the connection (e.g. isValid, rollback) to hang indefinitely in waitOnLock(). This matches the existing pattern in cancelCopy() which already releases the lock in its finally block.
Also adds closeAllClients() to StrangeProxyServer for triggering immediate IOExceptions in tests.
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: github://pgjdbc/pgjdbc
Cc: [email protected], [email protected]
Subject: Re: [pgjdbc/pgjdbc] PR #3960: fix: release COPY lock on IOException to prevent connection hang (#3957)
In-Reply-To: <<[email protected]>>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox