snowflake-connector-net
snowflake-connector-net copied to clipboard
SNOW-360449: add option to disable retry
Issue description
We'd like the ability to use the connector without automatic retries. These retries hide underlying errors making it hard to calculate observed SLA. Furthermore, they can cause very long delays when a fast fail is preferable. When you add in the fact that threads are blocked during retry (https://github.com/snowflakedb/snowflake-connector-net/issues/213), this can create more problems that it can solve.
Example code
Please give the client some option to disable the use of the RetryHandler
here: https://github.com/snowflakedb/snowflake-connector-net/blob/7d68a419c6807f767762bc2c15aceafdee2460e8/Snowflake.Data/Core/HttpUtil.cs#L165