-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
MySQL can deadlock on garbage collection #294
Comments
Experienced similar issue with PostgreSQL. Silk v.3.0.1, Django 1.11.13
|
Same issue with PostgreSQL 9.6, Django 2.0.6 and silk 3.0.1 |
Same issue with MariaDB 5.5.60, Django 2.1.9 and silk 3.0.2 |
I don't see why this doesn't get more attention. In my opinion this is a serious issue which prevents us from using Silk. |
Same issue with PostgreSQL 10.6 and Django 2.2 |
Same issue with Django 2.2, PostgreSQL 9.6.11 and silk 3.0.2 |
Same issue with Django 2.2, MySQL 5.7 and silk 4.1.0 |
also experiencing this in postgresql, but commenting here as #371 is closed as duplicate and it looks like this has been an issue before as documented in #265 - the workaround mentioned in #265 (comment) might be the most robust approach right now using django-silk 4.2.0 |
…llection. To avoid deadlock issues as mentioned e.g. in jazzband#265 jazzband#294 jazzband#371 Based on jazzband#265 (comment)
…llection. (#541) * Added silk_request_garbage_collect command for out-of-band garbage collection. To avoid deadlock issues as mentioned e.g. in #265 #294 #371 Based on #265 (comment) * Okay, to please @codecov :) Co-authored-by: Nikolaus Schlemm <[email protected]> Co-authored-by: Albert Wang <[email protected]>
One possible solution is to use select_for_update to lock the rows before deletion, using |
The text was updated successfully, but these errors were encountered: