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-976424: Getting no active warehouse in the session, when trying to query warehouse. #707

Closed
akshaysasidrn opened this issue Nov 22, 2023 · 3 comments
Assignees
Labels
status-information_needed Additional information is required from the reporter status-triage Issue is under initial triage

Comments

@akshaysasidrn
Copy link

akshaysasidrn commented Nov 22, 2023

  1. What version of NodeJS driver are you using?
    v1.6.23

  2. What operating system and processor architecture are you using?
    node:18.3.0-buster image for x86

  3. What version of NodeJS are you using?
    18.3.0

  4. What are the component versions in the environment (npm list)?
    @types/snowflake-sdk@^1.6.12
    snowflake-sdk@^1.6.23

5.Server version:* E.g. 1.90.1
You may get the server version by running a query:

SELECT CURRENT_VERSION();

CURRENT_VERSION(): "7.41.0"

  1. What did you do?

I'm creating a connection with explicitly mentioned warehouse to snowflake. This connection is then stored in memory.
https://github.com/ToolJet/ToolJet/blob/develop/plugins/packages/snowflake/lib/index.ts#L70
After a certain point of time, the connection gets no active warehouse in the session error.

What we have tried so far:

  • Tried using use warehouse xyz when the connection loses active warehouse. But we get the same not active warehouse error.
  • Tried recreating a new connection to the warehouse. Then tried running a query with the newly created connection to find it also has no active warehouse in connection error.
  1. What did you expect to see?
    Given that warehouse is explicitly mentioned, did not expect to see active warehouse error

  2. Can you set logging to DEBUG and collect the logs?
    No I don't have access to do that.

  3. What is your Snowflake account identifier, if any? (Optional)

@akshaysasidrn akshaysasidrn added the bug Something isn't working label Nov 22, 2023
@github-actions github-actions bot changed the title Getting no active warehouse in the session, when trying to query warehouse. SNOW-976424: Getting no active warehouse in the session, when trying to query warehouse. Nov 22, 2023
@sfc-gh-dszmolka
Copy link
Collaborator

hi and thank you for submitting this issue ! given that couple of releases are already after 1.6.23 with bugfixes, could you please as a first step upgrade to 1.9.1 and see if it still reproduces the issue for you ?

if it does, kindly please try to:

  1. use session keepalive or connection eviction (if you're using pooled connections) and see if it helps. See the Snowflake documentation or connection pool does not seem to evict closed connections #336 (comment) for configuration details

  2. if the issue is still there with 1.9.1 and session keepalive/idle connection eviction, please provide a repro script and scenario which when run, leads to this situation you're experiencing.
    thank you so much in advance !

@sfc-gh-dszmolka sfc-gh-dszmolka removed the bug Something isn't working label Nov 22, 2023
@sfc-gh-dszmolka sfc-gh-dszmolka self-assigned this Nov 22, 2023
@sfc-gh-dszmolka sfc-gh-dszmolka added status-triage Issue is under initial triage status-information_needed Additional information is required from the reporter labels Nov 22, 2023
@akshaysasidrn
Copy link
Author

Thanks for the suggestion.
We had already kept clientSessionKeepAlive as true but not clientSessionKeepAliveHeartbeatFrequency.
Let me upgrade the SDK version and put reduced heartbeat frequency in too.

@sfc-gh-dszmolka
Copy link
Collaborator

closing this issue as there was no response for two weeks. If you still need assistance, let us know please and i can reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status-information_needed Additional information is required from the reporter status-triage Issue is under initial triage
Projects
None yet
Development

No branches or pull requests

2 participants