Skip to content

Commit

Permalink
Bugfix for SSL exception retry
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Oct 7, 2024
1 parent 517be3c commit cc4e446
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jasper/component/Replicator.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Component;

import javax.net.ssl.SSLHandshakeException;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

import static jasper.client.JasperClient.params;
import static jasper.domain.proj.HasOrigin.origin;
Expand Down Expand Up @@ -429,6 +429,7 @@ private List<Tuple2<String, String>> expBackoff(String origin, int batchSize, In
size = min(batchSize, size * 2);
}
} catch (RetryableException e) {
if (e.getCause() instanceof SSLHandshakeException) throw e;
if (e.getCause() instanceof HttpHostConnectException) throw e;
if (e.getCause() instanceof NoHttpResponseException) throw e;
if (size == 1) {
Expand Down

0 comments on commit cc4e446

Please sign in to comment.