Monday, January 16, 2017

[google-cloud-sql-discuss] Re: Communications Link Failure connecting to MySQL Cloud Instace

Hey Dave,

Could you share a code snippet showing how you build the connection, and if possible, any error text and stack traces which come when the issue manifests?

This seems like something that we can either solve here or will end up producing a Public Issue Tracker issue thread.

Cheers,

Nick
Cloud Platform Community Support

On Thursday, January 12, 2017 at 11:22:35 AM UTC-5, Dave Greenly wrote:
Hi there, 

We have a Cloud Instance of a MySQL Database which we use daily.  We have multiple compute engines that pull and push data to it, and on those compute engines are Java programs that connect to the database and read/write.

Pretty standard stuff.

On a semi-consistent basis, our Java programs have difficulty connecting to the database, and we receive a "Communications Link Failure" and our code cannot connect to the DB.  After some indeterminate amount of time, things "just start working again".

We actually put a check in our code for this error, and if we get it, we wait a few seconds, and try again, but even after 5 or so retry attempts, sometimes it is still not working.

We have chalked this up in the past to some type of network anomaly going on in the cloud.

We are using mysql-connector-java-5.1.38, and the MySQL instance on the cloud is version MySQL 5.5.

Has anyone else experienced this?

Thanks
Dave

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/0801da4e-9271-46b6-8a52-4e6b568ab36a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment