In our environment, we have 2 MySQL (Master & Replica)
Today, we have really strange case.
The data in master sql get frozen for an hour! By frozen, i mean, there is no new record to, AT LEAST, 1 table (as far as we know)
But it still accessible by read.
This happened in production environment.
All application still can access, insert, update.
But nothing changes in the database itself.
After that frozen window pass, all the queries during that frozen window get executed!
We suspect it's query lock issue. But i checked mysql.slow_log and can't find any suspect queries. All queries get executed under a minute.
My question is..
- Is it deadlock issue? Why does it not log to mysql.slow_log table?
- How to prevent this? MySQL doesn't have query timeout as default value? How come 1 hour query block everything.
- Can we specified parameter to log the queries that has high lock time?
Thank you so much.
P.S. I'm using CloudSQL mysql 5.7.11 in