Skip to content

Commit

Permalink
CCF.CChInvH: physicalClose() on ShutdownSignalException
Browse files Browse the repository at this point in the history
The `publisherCallbackChannel.waitForConfirms()` may fail with a `ShutdownSignalException`
indicating that channel is closed on the broker.
So, treat it as a `TimeoutException` and proceed with a `physicalClose()` logic

**Auto-cherry-pick to `3.0.x`**

Related to #2640
  • Loading branch information
artembilan committed Mar 13, 2024
1 parent 0049ce7 commit 22d22b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ private void returnToCache(ChannelProxy proxy) {
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}
catch (TimeoutException ex) {
catch (ShutdownSignalException | TimeoutException ex) {
// The channel didn't handle confirms, so close it altogether to avoid
// memory leaks for pending confirms
try {
Expand Down

0 comments on commit 22d22b9

Please sign in to comment.