-
Notifications
You must be signed in to change notification settings - Fork 190
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
Handle deadlocks #107
Comments
I'm trying the following in my migration:
An approach like this could work for wrapping each stride in the chunker with a retry. Thoughts? |
Hi, I have a patch for the deadlock issue here: https://github.com/aswinanand/lhm/commit/3c215e9e430a5a7a7e318f2eba9bd3c43a3d2c50 How can I add unit tests for this? |
from pt-osc:
(https://www.percona.com/doc/percona-toolkit/2.2/pt-online-schema-change.html) So, we might wanna retry on all those messages. |
The same for me, lhm is really great, but deadlocks when app try to insert / update data in table, is killing everything (((( Do some workarounds exists? |
Fixes soundcloud#107 - automatic retry on deadlock
While copying data to the table, I experienced a deadlock that aborted the migration halfway through.
I'm guessing deadlocks happen if the INSERT statement and a trigger both try to touch the same row. Some possible solutions:
deadlock_retries: 1
to handle it when the query gets dropped?The text was updated successfully, but these errors were encountered: