Skip to content

Rollback not triggered in an interactive transaction when connection limit is high #10622

Closed

Description

@AoiIsMine

Bug description

I try to execute multiple interactive transactions concurrently and find that when the number of connections is high, throwing an error will not trigger transaction rollback
When the number of connections is small, although there will be errors, it can still be rolled back
(on another computer, connections 5 (CPU is 2) ,can be rolled back without an error.)

I'm not sure what caused it or whether it can be reproduced on other computers

How to reproduce

code demo

Environment & setup

  • OS: Windows,
  • Database: MySQL 8.0
  • Node.js version: v14.16.0

Prisma Version

3.6.0

Activity

  1. added
    kind/bug
    on Dec 8, 2021
  2. added
    bug/1-unconfirmed
    on Dec 8, 2021
  3. AoiIsMine commented on Dec 10, 2021

    @AoiIsMine
    Author

    i use knex.js is will success, can rollback

  4. changed the title [-]When multiple interactive transactions are executed concurrently, throw error ,no triggering transaction rollback[/-] [+]Rollback not triggered in an interactive transaction when connection limit is high[/+] on Dec 13, 2021
  5. pantharshit00 commented on Dec 13, 2021

    @pantharshit00
    Contributor

    Thanks for the issue. I can reproduce this.

  6. added
    bug/2-confirmed
    and removed
    bug/1-unconfirmed
    on Dec 13, 2021
  7. self-assigned this
    on Jan 13, 2022
  8. linked a pull request that will close this issuefix(client): rethrow error for tx #10797on Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug/2-confirmedkind/bugtech/typescripttopic: interactiveTransactions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions