I am using MYSql on Google Cloud with Java+Hibernate web app. While accessing website after some time interval I am getting below exception:
Caused by: java.sql.SQLNonTransientConnectionException: No operations allowed after connection closed.
However after refreshing page few times it works again. When I checked logs on Google Cloud I found this repeating error:
A 2019-12-09T00:36:01Z 2019/12/09 00:36:01 ephemeral certificate for instance MYSQL_INSTANCE_NAME will expire soon, refreshing now.
A 2019-12-09T00:36:35Z 2019/12/09 00:36:35 ephemeral certificate for instance MYSQL_INSTANCE_NAME will expire soon, refreshing now.
Is this closing the connection then reopening? Could you please let me know how to fix this?