You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I discovered race condition with sql.end().
It seems that if there are more queries queued than max pool size, something hangs.
I'm running on deno 1.43.1 with postgres.js v3.4.4
When CLOSE_POOL_TIMEOUT is around 33, there is 50/50 chance of both conditions below.
If CLOSE_POOL_TIMEOUT is much greater, process will hang.
If CLOSE_POOL_TIMEOUT is lesser, process will exit normally.
May not be the same issue, but we're also seeing client.end() not working/allowing nodejs to exit gracefully. When we search through for the open handles, it points to this:
Hello. I discovered race condition with
sql.end()
.It seems that if there are more queries queued than max pool size, something hangs.
I'm running on deno 1.43.1 with postgres.js v3.4.4
When
CLOSE_POOL_TIMEOUT
is around 33, there is 50/50 chance of both conditions below.If
CLOSE_POOL_TIMEOUT
is much greater, process will hang.If
CLOSE_POOL_TIMEOUT
is lesser, process will exit normally.The output is as follows:
First run, OK, finished successfully 👍
Second run does not ternimate. 🤕
The text was updated successfully, but these errors were encountered: