I have following connection settings in tomcat's server.xml:
There is default database / schema settings - defaultCatalog="necy". This is sometimes ignored by j/connector.
First I have error (this is as it should be):
java.lang.InterruptedException: Driver has reconnect connection after a communications link failure with address=(host=###)(port=###)(type=primary). In progress transaction was lost
It seems driver somehow reconnects but without setting default database because I have ful log of following errors:
java.util.concurrent.CompletionException: java.lang.InterruptedException: (conn=31) No database selected
I think it is j/connector bug because error message come from MultiPrimaryClient.java file.