-
Notifications
You must be signed in to change notification settings - Fork 129
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
connection pool does not seem to evict closed connections #336
Comments
+1 on this. I left the application running and now connection pool is full of "dead" connections and queries fail with:
Isn't it that one of the requirements for proper connection pool is to have proper connection management and dead connections should be renewed? |
i know this comment is super late and probably not useful anymore, but still putting it here in case someone stumbles upon this issue in the future, maybe it would help them. so this behaviour is sorta-kinda expected and the closed connections are really not evicted - by default. we do document (in a way which is easy to miss :( ) that the Under the To address this behaviour, one could
would run the evictor every minute and evict any connections which is idle for more than a minute. 2. alternatively, keep alive the existing connections in the pool
This would send a 'heartbeat' call to Snowflake every Relevant Snowflake documentation for the session keepalive can be found here. (also I noticed that despite #377, the connector still seems to be sending hope this helps someone. |
closing this issue for now, but please reopen if you still need help with the same matter. |
Hi @sfc-gh-dszmolka, I had a few additional questions regarding using the connection pool -- I apologize if this is not the appropriate place to post them, I am happy to start a new thread if needed. For context, I am building a Node.js web app that connects to a Snowflake database, and I am using a
Thanks for your help! |
Please answer these questions before submitting your issue. Thanks!
What version of NodeJS are you using (
node --version
andnpm --version
)?16.5.1
What operating system and processor architecture are you using?
Linux (AWS k8s)
What are the component versions in the environment (
npm list
)?What did you do?
Created a pool per documentation, At first all is good. The longer the application is up, the more errors I get.
What did you expect to see?
Pool should return valid connections
What did you see instead?
Error: Error executing select [snip]. Error: Unable to perform operation using terminated connection.
Add this to get standard output.
The text was updated successfully, but these errors were encountered: