-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
Fix deadlock problem #362
Fix deadlock problem #362
Conversation
Fix 'Has not waited the lock' error. Tested at very high loads.
Can you explain how this is related to #234? |
Mutex does not slow down much. #245 was closed but not fully fixed. |
i think the mutex part of your code is wrong, @see https://www.yiiframework.com/doc/api/2.0/yii-mutex-mutex |
@fl0v do you mean MySQL driver of mutex extension? If so, it should be fixed there instead of in queue, right? |
|
@samdark this is still an issue, will you merge the PR into next release? |
@hunwalk solution provided isn't finished. |
We have that |
@nadar does this PR fix it? |
I have not tested... but i assume @mathematicalman had that problem over and over again (like we have), so he made that PR and wrote @samdark i have to admit, i think its not the same error, sorry i was not looking close enough - or at least i think its not the same! This is what we have, its about transaction deadlock
|
@nadar no, that shouldn't be the same thing. |
Well, actually we have both problems :-) Just found out today:
|
So... does the change from this PR fix the problem? |
@samdark its "hard" to test that code from a fork via composer in production i have to admit. If it would be branch of yii2 queue it would be easy via |
This problem still persists. I accidently switched to latest version and got may errors, now switched back to 2.3.3. |
So I just tested this PR on a real queue load. And unfortunately, it gets only worse. The application was unable to push any new jobs because the Also, I found a commit eb8c7d4 which was fixing deadlocks somehow by introducing non-optimal query, which I fixed back (#449) and returned deadlocks 🙃 Even more magic. |
Closing because of such testing results. @erickskrauch thanks for testing it. |
Fix 'Has not waited the lock' error. Tested at very high loads.