[CONJ-250] Tomcat doesn't stop when using Aurora failover configuration Created: 2016-01-29  Updated: 2016-03-31  Resolved: 2016-03-30

Status: Closed
Project: MariaDB Connector/J
Component/s: Failover
Affects Version/s: 1.3.4, 1.3.5, 1.3.6, 1.3.7
Fix Version/s: 1.4.0

Type: Bug Priority: Major
Reporter: Yasuyuki Baba Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

JDK1.8.0_66, Tomcat 8.0.26, Amazon Linux


Attachments: Text File shutdown.log    

 Description   

My web application is running on Tomcat8.
And it used Amazon Aurora with MariaDB Connector/J failover setting (jdbc:mysql:aurora//...).

Tomcat is now not shut down since I updated MariaDB Connector/J to 1.3.4
Please see the attachment.
It seems the failover additional threads are not shut down.

I think it is following changes effects.
https://github.com/MariaDB/mariadb-connector-j/pull/60/files
Calling ExecutorService#shutdown has removed.



 Comments   
Comment by Diego Dupin [ 2016-02-03 ]

Thanks for reporting it.

The problem is that additionnal threads are not immediatly shutdown when the last connection close.
That will be handle soon.

Comment by Yasuyuki Baba [ 2016-03-03 ]

Will the connection validation thread be shutdown automatically?
It looks to do not shutdown in my environment.

Comment by Diego Dupin [ 2016-03-30 ]

Thanks to jentoo with the PR https://github.com/MariaDB/mariadb-connector-j/pull/77 that correct 2 issues including this one.

Comment by Yasuyuki Baba [ 2016-03-31 ]

Great!
Thanks.

Generated at Thu Feb 08 03:14:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.