Open
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.x.x
Plugin version
5.2.2
Node.js version
18.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
22.04
Description
Hi, I just found out this weird behavior about pg-pool
and it turned out a known issue on its repo.
When we shutdown/restart PostgreSQL instance, this module will force close our Fastify app! As my understanding, this happens due to lack of error handler in pg-pool
, resulting unexpected termination event when we wrap the query logic using try catch. Due to my poor explanation, please read this issue: brianc/node-postgres#2439.
Steps to Reproduce
- Deploy PostgreSQL
- Deploy Fastify Instance with PostgreSQL support
- Shutdown PostgreSQL
Expected Behavior
No response
Metadata
Metadata
Assignees
Labels
No labels