snowflakedb / snowflake-ingest-java

Java SDK for the Snowflake Ingest Service -
http://www.snowflake.net
Apache License 2.0
69 stars 54 forks source link

SNOW-1373151: Proactively refresh token to avoid token expiration exception from JDBC #780

Closed sfc-gh-tzhang closed 2 months ago

sfc-gh-tzhang commented 3 months ago

We have seen many complains from customer about having false positive ERROR log from JDBC, since we will refresh the token only if it expires. This change switches to actively refresh the token before it expires to avoid the ERROR log.

Testing is covered by existing long running end2end test