Await for the termination of connections when closing the datasource
--------------------------------------------------------------------
Key: AG-124
URL:
https://issues.jboss.org/browse/AG-124
Project: Agroal
Issue Type: Task
Components: pool
Affects Versions: 1.5
Reporter: Luis Barreiro
Assignee: Luis Barreiro
Priority: Critical
Fix For: 1.6
Connections may be left open after the datasource is closed as the housekeeping executor
may not execute all the scheduled tasks.
This can happen, for instance, when the JVM is shutting down as all threads stop as soon
as the shutdown hooks complete.