SNOW-1806123: Context isn't being propagated into authenticateWithConfig
#1244
Labels
bug
Erroneous or unexpected behaviour
status-fixed_awaiting_release
The issue has been fixed, its PR merged, and now awaiting the next release cycle of the connector.
status-triage_done
Initial triage done, will be further handled by the driver team
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of GO driver are you using?
1.11.2
What operating system and processor architecture are you using?
N/A
What version of GO are you using?
1.22
4.Server version:* E.g. 1.90.1
You may get the server version by running a query:
We've run into some cases where some of our customers are having issues establishing Snowflake database connections. In particular, we set a context deadline of e.g. 120 seconds, however, these calls end up running for much longer than they should be (around 354 seconds) before failing.
In the source code for OpenWithConfig, I see that we make a call to
authenticateWithConfig(sc)
. In particular, we don't pass in the incomingctx
. Instead, we end up usingsc.ctx
, which gets set tocontext.Background()
inbuildSnowflakeConn
. Am I missing something, or does this mean that there are places where the driver simply doesn't respect context deadlines?Calls to
OpenWithConfig
should respect the incoming context deadline.Can you set logging to DEBUG and collect the logs?
https://community.snowflake.com/s/article/How-to-generate-log-file-on-Snowflake-connectors
Before sharing any information, please be sure to review the log and remove any sensitive
information.
The text was updated successfully, but these errors were encountered: