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-901157: Session.builder.getOrCreate does not take into consideration if the authentication token has expired #1022

Closed
sfc-gh-mrojas opened this issue Aug 27, 2023 · 4 comments · Fixed by #1139
Assignees
Labels
bug Something isn't working

Comments

@sfc-gh-mrojas
Copy link
Collaborator

Please answer these questions before submitting your issue. Thanks!

  1. What version of Python are you using?

Python 3.10.11 (v3.10.11:7d4cc5aa85, Apr 4 2023, 19:05:19) [Clang 13.0.0 (clang-1300.0.29.30)]

  1. What operating system and processor architecture are you using?

macOS-13.5-arm64-arm-64bit

  1. What are the component versions in the environment (pip freeze)?

  2. What did you do?

I have a program that is using Session.builder.configs(config_dict).getOrCreate() the program is running for a few hours, after 4hrs the authentication token gets revoked but context() and getOrCreate() return the same session and that session will fail with an error message about AuthenticationToken

  1. What did you expect to see?

    It should have logged that the authentication token is expired and try to do a create

@sfc-gh-mrojas sfc-gh-mrojas added bug Something isn't working needs triage Initial RCA is required labels Aug 27, 2023
@github-actions github-actions bot changed the title Session.builder.getOrCreate does not take into consideration if the authentication token has expired SNOW-901157: Session.builder.getOrCreate does not take into consideration if the authentication token has expired Aug 27, 2023
@sfc-gh-aalam
Copy link
Contributor

sfc-gh-aalam commented Sep 1, 2023

Is the function doing put/get operation for 4+ hrs?

@sfc-gh-mrojas
Copy link
Collaborator Author

The program is orchestrating tasks. And the orchestrator is "alive" for more that 4 hours. So at some point the context will return an instance which has an expired lifespan

@sfc-gh-mkeller
Copy link
Collaborator

@sfc-gh-mrojas What kind of authentication are you using? Is it externalbrowser?

@sfc-gh-mrojas
Copy link
Collaborator Author

sfc-gh-mrojas commented Sep 7, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants