From cf6d62585ec20986a46741fd83871810a6134628 Mon Sep 17 00:00:00 2001 From: Saurabh Shekher Date: Fri, 17 Apr 2020 11:26:50 +0530 Subject: [PATCH] changed default retries to 7 --- .../qubole/qds/sdk/java/client/DefaultQdsConfiguration.java | 2 +- .../com/qubole/qds/sdk/java/details/StandardRetryPolicy.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/qubole/qds/sdk/java/client/DefaultQdsConfiguration.java b/src/main/java/com/qubole/qds/sdk/java/client/DefaultQdsConfiguration.java index 3054abe5..0e9ab811 100644 --- a/src/main/java/com/qubole/qds/sdk/java/client/DefaultQdsConfiguration.java +++ b/src/main/java/com/qubole/qds/sdk/java/client/DefaultQdsConfiguration.java @@ -87,7 +87,7 @@ public DefaultQdsConfiguration(String apiEndpoint, String apiToken, String apiVe /** * @param apiEndpoint endpoint * @param apiToken your API token - * @param maxRetries number of re-attempts for an api-call in case of retryable exceptions. defaults to 6. + * @param maxRetries number of re-attempts for an api-call in case of retryable exceptions. defaults to 7. * @param baseRetryDelay base sleep interval for exponential backoff in case of retryable exceptions. defaults to 10s. */ diff --git a/src/main/java/com/qubole/qds/sdk/java/details/StandardRetryPolicy.java b/src/main/java/com/qubole/qds/sdk/java/details/StandardRetryPolicy.java index 2c0d0c95..c8b82665 100644 --- a/src/main/java/com/qubole/qds/sdk/java/details/StandardRetryPolicy.java +++ b/src/main/java/com/qubole/qds/sdk/java/details/StandardRetryPolicy.java @@ -29,7 +29,7 @@ public class StandardRetryPolicy implements RetryPolicy private final int maxRetries; - private static final int DEFAULT_MAX_RETRIES = 6; + private static final int DEFAULT_MAX_RETRIES = 7; public StandardRetryPolicy() { @@ -38,7 +38,7 @@ public StandardRetryPolicy() public StandardRetryPolicy(int maxRetries) { - this.maxRetries = Math.min(6, maxRetries); + this.maxRetries = Math.min(7, maxRetries); } @SuppressWarnings("SimplifiableIfStatement")