-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lots of metalock ,mysql crash #768
Comments
We have encountered the metadata lock issues in our prod gh-ost cutover. There are helpful links from Percona which could give you the details: Unfortunately your MySQL version is on 5.6 which doesn't have the performance_schema.metadata_locks table (which is available in MySQL 5.7 and exposes metadata locks details). Utilizing that metadata_locks table you could figure out which query is holding the metadata lock and blocking your gh-ost queries (DDLs). Then you could kill that query if safe to do so to let your gh-ost DDL proceed. |
Thanks for your reply ,kaiqin. Let show you my issue As description by issue #82
|
Based on the doc the --cut-over-lock-timeout-seconds flag sets the wait_lock_timeout for the lock tables and rename tables commands in the cut-over step. And from your gh-ost logs it timed out at rename step and then connection reset. I have seen timeout during lock table phase then it retried itself again. But I never seen it happen during rename phase which is interesting to know the root cause to me as well. Hope gh-ost team could give some insight on this issue. |
report issue
gh-ost: version ,1.0.46,
mysql:version,5.6.28
issue:
Thanks for gh-ost you guys provide, we have do five hundred thousand ddl
Recently ,we got some strange questions ,some times gh-ost ddl crash our master db. (lots of meta lock in db , thread running increase suddenly ,then database was crash)
1. db load was very low,little tps/qps
2. lots of meta lock in processlist snapshot.
We set rename timeout is 1 seconds (cut-over-lock-timeout-seconds=1).
The key point here,gh-ost seems didn't release the lock after lock wait time exceeded
DDL LOG : we could found gh-ost didn't print log about "release the lock"
DB PROCESSLIST SNAPSHOT: many metalock in process list
The text was updated successfully, but these errors were encountered: