[
https://issues.redhat.com/browse/AG-154?page=com.atlassian.jira.plugin.sy...
]
Luis Barreiro commented on AG-154:
----------------------------------
Hello [~wojciechkopciewicz],
Ran the Quarkus version you mentioned (1.9.2.Final — it has agroal 1.8 and postgresql-jdbc
42.2.16) with 100 initial connections and were unable to reproduce a leak. I tried to
shutdown the java process in several ways, but in the end the database never reported any
leaked connections.
Is there anything particular in the way you start and stop Quarkus ??
The life-cycle of data-sources on Quarkus is managed by CDI. Are you injecting the
data-source or creating it yourself ?? Could there be anything preventing `@PreDestroy`
methods from running ??
Connection leak when DB connection closed during transaction
rollback
---------------------------------------------------------------------
Key: AG-154
URL:
https://issues.redhat.com/browse/AG-154
Project: Agroal
Issue Type: Bug
Components: narayana, pool
Affects Versions: 1.9
Reporter: Wojciech Kopciewicz
Assignee: Luis Barreiro
Priority: Critical
We are using Quarkus 1.9.2 with Hibernate and Agroal to access PostgreSQL DB.
It looks like Agroal is leaking connections when connection is closed (somewhere) on the
server side during transaction rollback.
The following log was observed:
Error trying to transactionRollback local transaction: This connection has been closed.
--
This message was sent by Atlassian Jira
(v8.13.1#813001)