Skip to content
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-1846692: Getting a lot of "Failed to close session" Errors After upgrading to 4.2.0 #1070

Closed
NivNetzer opened this issue Dec 5, 2024 · 1 comment
Assignees
Labels
question Issue is a usage/other question rather than a bug status-triage_done Initial triage done, will be further handled by the driver team

Comments

@NivNetzer
Copy link

Since upgrading the driver to 4.2.0 we're seeing a lot of "Failed to close session"
We don't believe this is a new error but a product of this commit Raising the response error log level from debug to error.

If the definition has now changed from debug to error, what action should we take?

Here's an example of an error
Failed to close session: 846189017238125, error ignored. Code: 390112 Message: Your session has expired. Please login again.

@NivNetzer NivNetzer added the bug label Dec 5, 2024
@github-actions github-actions bot changed the title Getting a lot of "Failed to close session" Errors After upgrading to 4.2.0 SNOW-1846692: Getting a lot of "Failed to close session" Errors After upgrading to 4.2.0 Dec 5, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka self-assigned this Dec 5, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka added question Issue is a usage/other question rather than a bug status-triage_done Initial triage done, will be further handled by the driver team labels Dec 5, 2024
@sfc-gh-dszmolka
Copy link
Contributor

hi - this sounds the expected behaviour to me. Sessions by default are valid for 4 hours, afterwards for any subsequent query issued in the same session, user needs to authenticate again. Note the word 'any' here - it's also valid for the call to close the session.

You can either ignore these errors for session close, or check if the session is still valid (e.g. try to submit a query) and only try to close them if they're still valid.

Or use our connection pooling and let the pool manager manage the underlying connections. There's extensive documentation for it. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue is a usage/other question rather than a bug status-triage_done Initial triage done, will be further handled by the driver team
Projects
None yet
Development

No branches or pull requests

2 participants