Callback Free Interactive Transactions -- exhausting connection pools in Prisma 5

Open
#35 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
databases

Research direction

Start with the callback-free interactive transaction implementation described in the issue and reproduce the P2028 error against Prisma 5, comparing it with the reported Prisma 4 behavior. The issue provides no file path, test, or minimal reproduction; done would require isolating a reproducible connection-pool failure and documenting or fixing its cause.

Written by the indexing model from the issue text.

Description

We've been using (a variant of) the callback-free-itx extension with Prisma 4 in production for a while now, it's been rock solid. We're exploring the upgrade to Prisma 5 and finding that periodically we're getting "unable to start a transaction in the given time" P2028 errors. We've narrowed it down to the callback free interactive transaction code. If we don't use transactions at all then we're stable.

I swapped over our implementation to be the exact one in this repository and we're seeing the same behavior. I don't have a small reproduction case yet, I'm opening this ticket for visibility and in the hope that somebody else has seen this on Prisma 5 and perhaps can point me in the right direction.

Dominant language
TypeScript
Stars
227
Forks
18
Avg merge
4h 37m
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/prisma-client-extensions

All issues in prisma/prisma-client-extensions

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.