-
Notifications
You must be signed in to change notification settings - Fork 429
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
Task processor deadlock issues #2709
Comments
Why do we get deadlocks:
Here's the corrected text: "Now, let's assume the project has two environments—1 and 2. In order to update the For example, the first transaction locks the first row, and at the same time, the second transaction locks the second row. Now, to complete the update, the first transaction will need a lock on the second row. However, it can't acquire the lock because the second transaction won't release the lock until it can lock the first row and commit. Voilà, we have a deadlock!" |
reduce transaction length to make #2709 more rare and improve wait time
Following changes by Gagan we still saw a spike in Deadlocks on 8th October at ~23:15 UTC. I have added a Cloudwatch alarm. @gagantrivedi to review task processor ECS logs. |
We only have logs till 14th October. Will have to wait for db to run into this again |
Fixed by #3339 |
Recently we have seen instances of deadlock errors causing the task processor queue to grow beyond normal levels.
It seems as though this is caused by a flood of requests for environments within the same project.
Next steps:
The text was updated successfully, but these errors were encountered: