Database Type
mysql5.7
Database Version
mysql5.7
Druid Version
1.2.23
JDK Version
jdk8
Error SQL
When Druid connection pool evicts idle connections, only the connection object is removed from the pool, but the underlying physical TCP connection to MySQL remains open. I expect the physical database connection to be closed simultaneously when the idle connection gets evicted from the pool.
Additionally, there is an inconsistent behavior on application shutdown:
Right after the application starts, if I stop the program, all physical MySQL connections get closed properly.
However, after the application runs for a period of time, leftover physical MySQL connections can no longer be terminated when stopping the service.
My analysis: This issue occurs because those connections have already been evicted out of the pool beforehand. Logically, all physical MySQL connections belonging to the application should be fully closed once the application process exits, regardless of whether they were evicted from the pool earlier.
Testcase Code
No response
Stacktrace Info
No response
Error Info
No response
Database Type
mysql5.7
Database Version
mysql5.7
Druid Version
1.2.23
JDK Version
jdk8
Error SQL
When Druid connection pool evicts idle connections, only the connection object is removed from the pool, but the underlying physical TCP connection to MySQL remains open. I expect the physical database connection to be closed simultaneously when the idle connection gets evicted from the pool.
Additionally, there is an inconsistent behavior on application shutdown:
Right after the application starts, if I stop the program, all physical MySQL connections get closed properly.
However, after the application runs for a period of time, leftover physical MySQL connections can no longer be terminated when stopping the service.
My analysis: This issue occurs because those connections have already been evicted out of the pool beforehand. Logically, all physical MySQL connections belonging to the application should be fully closed once the application process exits, regardless of whether they were evicted from the pool earlier.
Testcase Code
No response
Stacktrace Info
No response
Error Info
No response