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

Transaction Deadlock #2033

Open
3 tasks done
chronark opened this issue Aug 20, 2024 · 1 comment
Open
3 tasks done

Transaction Deadlock #2033

chronark opened this issue Aug 20, 2024 · 1 comment
Labels
Bug Something isn't working

Comments

@chronark
Copy link
Collaborator

Preliminary Checks

Reproduction / Replay Link (Optional)

No response

Issue Summary

I just saw this failure in our CI tests

We need to check out why this happens and fix it

https://github.com/unkeyed/unkey/actions/runs/10475239709/job/29012452407

FAIL  src/routes/v1_identities_listIdentities.happy.test.ts > returns ratelimits
DatabaseError: target: unkey.-.primary: vttablet: rpc error: code = Aborted desc = Deadlock found when trying to get lock; try restarting transaction (errno 1213) (sqlstate 40001) (CallerID: ***): Sql: "insert into ratelimits(id, `name`, workspace_id, created_at, updated_at, key_id, identity_id, `limit`, duration) values (:vtg1 /* VARCHAR */, :vtg2 /* VARCHAR */, :vtg3 /* VARCHAR */, :vtg4 /* INT64 */, :vtg5 /* INT64 */, default, :vtg6 /* VARCHAR */, :vtg7 /* INT64 */, :vtg8 /* INT64 */)", BindVars: {REDACTED}

Steps to Reproduce

Not sure yet

Expected behavior

it does not throw up

Other information

No response

Screenshots

No response

Version info

- OS:
- Node:
- npm:
@chronark chronark added the Bug Something isn't working label Aug 20, 2024
Copy link

linear bot commented Aug 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant