From 463e95a14496dc7e3f5a0a3e82cda8dfaeb100f5 Mon Sep 17 00:00:00 2001 From: Lukas Sembera Date: Tue, 9 Jul 2024 16:25:30 +0200 Subject: [PATCH] SNOW-1512935 Retry SocketTimeoutException (#789) --- src/main/java/net/snowflake/ingest/utils/HttpUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/snowflake/ingest/utils/HttpUtil.java b/src/main/java/net/snowflake/ingest/utils/HttpUtil.java index 1ff65a095..1be382797 100644 --- a/src/main/java/net/snowflake/ingest/utils/HttpUtil.java +++ b/src/main/java/net/snowflake/ingest/utils/HttpUtil.java @@ -294,7 +294,8 @@ static HttpRequestRetryHandler getHttpRequestRetryHandler() { if (exception instanceof NoHttpResponseException || exception instanceof javax.net.ssl.SSLException || exception instanceof java.net.SocketException - || exception instanceof java.net.UnknownHostException) { + || exception instanceof java.net.UnknownHostException + || exception instanceof java.net.SocketTimeoutException) { LOGGER.info( "Retrying request which caused {} with " + "URI:{}, retryCount:{} and maxRetryCount:{}", exception.getClass().getName(),