You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2022/11/07 08:35:24 UTC

[servicecomb-java-chassis] branch master updated: [SCB-2717] add exception retry for SslHandshakeTimeoutException (#3453)

This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new a50b4fc4d [SCB-2717] add exception retry for SslHandshakeTimeoutException (#3453)
a50b4fc4d is described below

commit a50b4fc4d98c997850aedb70ad7971274ff7e1de
Author: yanghao <73...@users.noreply.github.com>
AuthorDate: Mon Nov 7 16:35:18 2022 +0800

    [SCB-2717] add exception retry for SslHandshakeTimeoutException (#3453)
---
 .../apache/servicecomb/governance/handler/ext/FailurePredictor.java  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/governance/src/main/java/org/apache/servicecomb/governance/handler/ext/FailurePredictor.java b/governance/src/main/java/org/apache/servicecomb/governance/handler/ext/FailurePredictor.java
index 544a7452f..31ae8eca1 100644
--- a/governance/src/main/java/org/apache/servicecomb/governance/handler/ext/FailurePredictor.java
+++ b/governance/src/main/java/org/apache/servicecomb/governance/handler/ext/FailurePredictor.java
@@ -25,9 +25,12 @@ import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
 
+import javax.net.ssl.SSLHandshakeException;
+
 import com.google.common.collect.ImmutableMap;
 
 import io.vertx.core.VertxException;
+import io.netty.handler.ssl.SslHandshakeTimeoutException;
 
 public interface FailurePredictor {
   Map<Class<? extends Throwable>, List<String>> STRICT_RETRIABLE =
@@ -40,6 +43,8 @@ public interface FailurePredictor {
           .put(IOException.class, Collections.singletonList("Connection reset by peer"))
           .put(VertxException.class, Collections.singletonList("Connection was closed"))
           .put(NoRouteToHostException.class, Collections.emptyList())
+          .put(SSLHandshakeException.class, Collections.emptyList())
+          .put(SslHandshakeTimeoutException.class, Collections.emptyList())
           .build();
 
   boolean isFailedResult(List<String> statusList, Object result);