Skip to content
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

Invalid Error: resource deadlock would occur #209

Open
levcom opened this issue Sep 16, 2023 · 1 comment
Open

Invalid Error: resource deadlock would occur #209

levcom opened this issue Sep 16, 2023 · 1 comment

Comments

@levcom
Copy link

levcom commented Sep 16, 2023

I'm performing a row insertion transaction (the primary key "" - already exists), but I'm getting a "duplicate key error" (Constraint Error: Duplicate key violates primary key constraint. If this is an unexpected constraint violation please double check with the known index limitations section in our documentation (docs - sql - indexes)).

After this I cannot perform another insert or select operation and receive the following error.
Error: Invalid Error: resource deadlock would occur: resource deadlock would occur

Perhaps I need to process the transaction in some special way?
How can you identify and resolve the blockage that has occurred?

As I understand the question in Over-Eager Unique Constraint Checking. But how to correctly handle the error so that there are no deadlocks?

@wangfenjin
Copy link
Collaborator

we may need to close the error connection and create a new one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants