-
Notifications
You must be signed in to change notification settings - Fork 125
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-752633: Session Keep-alive doesn't work as expected #738
Comments
Ah good to know. I had a workaround also: artie-labs/transfer#65 cc: @sfc-gh-wfateem looks like you close #556. |
You're welcome! Looks like there's some overlap between |
hi and thank you for raising this issue. as mihaitodor explained, the correct way of implementing the Snowflake 'keep session alive pings' (by default sent every hour, to prevent the authentication token from expiring after 4 hours) is using the however when trying to figure out what
and looking further, also found that this capability came ~2 years ago with PR #354 . Apparently there was an internal requirement that we should be able to keep the session open on the Snowflake engine, even when the client closed the connection object. Not sure about the requirement behind that requirement, but hopefully this explains the current situation somewhat. So if i got the purposes right:
Closing this issue now but please if you feel something is still unclear or if an issue is here, please comment and I'll reopen for you. |
Issue description
Tell us what should happen and what happens instead
I tried to use the
keepSessionAlive
flag by setting it to true when I connected to Snowflake. After a few hours of idling, my session ended up getting aborted and it never tried to re-establish a new one.Example code
artie-labs/transfer#56
Error log
Error message in console:
390114: Authentication token has expired. The user must authenticate again.
Configuration
Driver version (or git SHA):
Go version: run
go version
in your consoleThe text was updated successfully, but these errors were encountered: