hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From inigo...@apache.org
Subject [39/50] [abbrv] hadoop git commit: YARN-6294. ATS client should better handle Socket closed case. Contributed by Li Lu.
Date Fri, 17 Mar 2017 02:37:29 GMT
YARN-6294. ATS client should better handle Socket closed case. Contributed by Li Lu.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/221783b3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/221783b3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/221783b3

Branch: refs/heads/HDFS-10467
Commit: 221783b35bb78bda909c2417c7b9687d491fa196
Parents: bb6a214
Author: Junping Du <junping_du@apache.org>
Authored: Wed Mar 15 11:48:09 2017 -0700
Committer: Junping Du <junping_du@apache.org>
Committed: Wed Mar 15 11:48:17 2017 -0700

----------------------------------------------------------------------
 .../apache/hadoop/yarn/client/api/impl/TimelineConnector.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/221783b3/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineConnector.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineConnector.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineConnector.java
index b5b5f77..bb29d6c 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineConnector.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineConnector.java
@@ -22,6 +22,7 @@ import java.io.IOException;
 import java.lang.reflect.UndeclaredThrowableException;
 import java.net.ConnectException;
 import java.net.HttpURLConnection;
+import java.net.SocketException;
 import java.net.SocketTimeoutException;
 import java.net.URI;
 import java.net.URL;
@@ -390,7 +391,8 @@ public class TimelineConnector extends AbstractService {
           // Only retry on connection exceptions
           return (e instanceof ClientHandlerException)
               && (e.getCause() instanceof ConnectException
-                  || e.getCause() instanceof SocketTimeoutException);
+                  || e.getCause() instanceof SocketTimeoutException
+                  || e.getCause() instanceof SocketException);
         }
       };
       try {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message