-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-932248: Connection pool doesn't retry when using a disconnected connection #661
Comments
Hi and thank you for raising this issue! At this point I'm wondering is this is really an unexpected behaviour from this library the Snowflake Node.JS driver ? I mean if a connection is already closed and thrown out of the pool and someone tries to use that exact connection, that doesn't sound too unexpected that it fails. But, still might be something on our side so to troubleshoot further, can you please provide a reproducible scenario or script which when run, leads to this behaviour? You might need to increase the logging level in Polly as well, or if you have a reproduction outside of that tool, that is also fine. edit: in addition to that, the driver dev team highlighted that
can you try specifying it on pool creation and see if it helps? |
Hi David, thanks for getting back to me so quickly. Yeah, I would guess this is more of an issue between Polly and the generic-pool library. I was able to get this working better by setting This is a new app for us so it has not yet been deployed and it's the first app I think where we are using generic-pool so we'll likely be tweaking the settings as we go. |
I did see that there is a pool option |
hey Kevin thanks for sharing your solution, might be useful for others as well! for now, I'm marking this one as closed but please feel free to comment if you suspect a bug / misbehaviour of this library and we can take it further. |
I am recording requests to Snowflake using PollyJS. This is working well except for one issue I have run into.
If I run a single test I can record and play back just fine.
If all requests are recorded I can play back just fine.
If all requests are recorded new, I can play back just fine.
However, if I have some recordings to play back but am missing one that I want to record, then that one throws "Unable to perform operation using terminated connection."
I suspect the issue is that Polly has disconnected so that the request can be passed through to Snowflake but the connection pool does not attempt to reconnect when it tries a disconnected connection.
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of NodeJS driver are you using?
1.9.0
What operating system and processor architecture are you using?
Ubuntu x86_64
What version of NodeJS are you using?
(
node --version
andnpm --version
)v18.18.0
9.8.1
What are the component versions in the environment (
npm list
)?5.Server version:* E.g. 1.90.1
You may get the server version by running a query:
What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
What did you expect to see?
What should have happened and what happened instead?
Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
e.g
Add this to get standard output.
The text was updated successfully, but these errors were encountered: