Hi. I have a Java app using Hikari with MySQL using jdbc driver. My maxlifetime value has been set to 1800000 (millis) which is much less than the MySQL wait_timeout of 28800 (seconds). I'm still getting errors (below) when attempting to write data after several hours of idle. Is it correct that if the maxlifetime value is less than MySQL's wait_timeout, the connection is retired AND another created by Hikari to replace it, or do I need to check this and create another connection with java? Also, do I have this backwards and the solution would be to extend both the maxlifetime and wait_timeout to more than 12 hours? I'm fairly new to this. Any help would be greatly appreciated.
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] HikariPool-1 - configuration:
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] allowPoolSuspension.............false
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] autoCommit......................true
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] catalog.........................none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] connectionInitSql...............none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] connectionTestQuery.............none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] connectionTimeout...............30000
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] dataSource......................none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] dataSourceClassName............."com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] dataSourceJNDI..................none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] dataSourceProperties............{url=jdbc:mysql://xx:xxxx/xxxx, cacheServerConfiguration=true, useServerPrepStmts=true, elideSetAutoCommits=true, user=xxxxx, useSSL=false, cachePrepStmts=true, rewriteBatchedStatements=true, cacheResultSetMetadata=true, useLocalSessionState=true, maintainTimeStats=false, prepStmtCacheSize=250, prepStmtCacheSqlLimit=2048, password=<masked>}
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] driverClassName.................none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] healthCheckProperties...........{}
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] healthCheckRegistry.............none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] idleTimeout.....................600000
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] initializationFailTimeout.......1
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] isolateInternalQueries..........false
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] jdbcUrl.........................none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] leakDetectionThreshold..........0
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] maxLifetime.....................1800000
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] maximumPoolSize.................4
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] metricRegistry..................none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] metricsTrackerFactory...........none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] minimumIdle.....................4
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] password........................<masked>
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] poolName........................"HikariPool-1"
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] readOnly........................false
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] registerMbeans..................false
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] scheduledExecutor...............none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] schema..........................none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] threadFactory...................internal
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] transactionIsolation............default
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] username........................none
[09:18:10] [Server thread/DEBUG]: [com.zaxxer.hikari.HikariConfig] validationTimeout...............5000