You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if I need to call System.exit(1) in my program, do I need to perform any kind of cleanup with HikariCP, kind of like flushing a buffer with files or running shutdown with executorservice? Currently, when I call getConnection() on HikariDataSource, I have a finally block that closes the statement, result and connection (actually I assume the connection is returned to the pool):
if (stmt != null)
{
stmt.close();
}
if (result != null)
{
result.close();
}
if (conn != null)
{
conn.close();
}
I would like to know if I need to do anything else when I exit my program.
The text was updated successfully, but these errors were encountered:
You should call close() or shutdown() on the HikariDataSource before you exit. This will ensure that all connections to the database in the pool are closed.
I am wondering if I need to call System.exit(1) in my program, do I need to perform any kind of cleanup with HikariCP, kind of like flushing a buffer with files or running shutdown with executorservice? Currently, when I call getConnection() on HikariDataSource, I have a finally block that closes the statement, result and connection (actually I assume the connection is returned to the pool):
I would like to know if I need to do anything else when I exit my program.
The text was updated successfully, but these errors were encountered: