Skip to content

There is a bug in pool when connection cannot be established at pool start #478

@langpavel

Description

@langpavel

Describe the bug

There is a bug in pool when connection cannot be established at pool start.
This bug will bite when you wish close the connection

To Reproduce

Steps to reproduce the behavior:

  1. Start your deno server
  2. Start your pool
  3. Try to connect
  4. Exception happen (good)
  5. Start database
  6. Try to connect
  7. Do insert (OK, commited)
  8. Release pool client, then
    8.5. Exception happens.
  9. but query succeeds

Expected behavior

No exception

This bug is not observed when database connection is ready at start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions