snowflakedb / snowflake-ingest-java

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

SNOW-1255447: Fix leaked connection due to error response #719

Closed sfc-gh-tzhang closed 5 months ago

sfc-gh-tzhang commented 5 months ago

We're leaking HTTP connection when we get an error response from server, and if the client keeps retrying, we will run out connections from the connection pool. This PR contains the change to consume the HTTP response even under error case which will release the connection internally.