-
Notifications
You must be signed in to change notification settings - Fork 437
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
[BUG] issue restoring [...] Deadlock found when trying to get lock; try restarting transaction #528
Comments
we've the same problem here: 2021-12-16 16:49:46 [ERROR] - Thread 7 issue restoring export-20211216-060252/mydb.DimEmail-schema.sql.gz: Deadlock found when trying to get lock; try restarting transaction there's no other connections except mydumper connections. if we use just one thread no deadlock found, but in this way is useless. deadlocks are not shown in innodb status, they're not deadlock. |
Hi @stardatasrl / @str , did you tried with --innodb-optimize-keys ? do you have foreign keys on that tables? what database version? might be related to #469. |
hi, we executed this:
package: mydumper-0.11.3-5.x86_64 no FK. there's some internal locking, because we found a metadata lock on mysql where no other connections were active, and the only myloader one was in metadata lock.
BR. |
Hi @stardatasrl , that metadata lock looks like a mysql bug. I saw similar issue on mydumper that were already fixed for your version. Can you check bugs on mysql side? |
Ah, btw can you share a test case? We might need it to create a bug on mysql. |
@stardatasrl your |
Hello
mydumper 0.11.5 created the backup with no errors and multiple threads used
If I use myloader with -t 1 it does not have errors. I compiled 0.11.5 myself against the PS8 libs: |
hi @davidducos , maybe it's a mysql bug (i've to test it, but i think you're right), but i cannot upgrade all the mysql i have to dump. i think the easyest way to fix it is to add an option to serialize the drop/create table: I have to use the new mydumper version for the innodb-optimize-keys feature, but if i do this, it does not work because the deadlock errors (and it seems mydumper does not catch the error and retry, just skip the table after the deadlock). BR patrizio |
@peng19832 , why don't you use --purge-mode=TRUNCATE ? |
THANKS |
Trying to restorere a dump, I get the following error message:
How can we try to load a dump without any locks?
The text was updated successfully, but these errors were encountered: