Skip to content

Commit

Permalink
fix: also retry on SdkClientException (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
chgl authored Feb 28, 2025
1 parent de055c5 commit e9c9ec6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.springframework.web.client.ResourceAccessException;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.RetryableException;
import software.amazon.awssdk.core.exception.SdkClientException;

@Configuration
@Service
Expand Down Expand Up @@ -136,6 +137,7 @@ public SendToServerProcessor(
retryableExceptions.put(IOException.class, true);
retryableExceptions.put(AwsServiceException.class, true);
retryableExceptions.put(RetryableException.class, true);
retryableExceptions.put(SdkClientException.class, true);

retryTemplate.setRetryPolicy(new SimpleRetryPolicy(Integer.MAX_VALUE, retryableExceptions));

Expand Down

0 comments on commit e9c9ec6

Please sign in to comment.