hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From varunsax...@apache.org
Subject hadoop git commit: YARN-5539. TimelineClient failed to retry on java.net.SocketTimeoutException: Read timed out (Junping Du via Varun Saxena)
Date Fri, 23 Sep 2016 07:58:04 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 3293a7d92 -> b8a2d7b8f


YARN-5539. TimelineClient failed to retry on java.net.SocketTimeoutException: Read timed out
(Junping Du via Varun Saxena)


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

Branch: refs/heads/trunk
Commit: b8a2d7b8fc96302ba1ef99d24392f463734f1b82
Parents: 3293a7d
Author: Varun Saxena <varunsaxena@apache.org>
Authored: Fri Sep 23 13:27:31 2016 +0530
Committer: Varun Saxena <varunsaxena@apache.org>
Committed: Fri Sep 23 13:27:31 2016 +0530

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


http://git-wip-us.apache.org/repos/asf/hadoop/blob/b8a2d7b8/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java
index 56da2a7..dc4d3e6 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java
@@ -265,7 +265,8 @@ public class TimelineClientImpl extends TimelineClient {
         public boolean shouldRetryOn(Exception e) {
           // Only retry on connection exceptions
           return (e instanceof ClientHandlerException)
-              && (e.getCause() instanceof ConnectException);
+              && (e.getCause() instanceof ConnectException ||
+                  e.getCause() instanceof SocketTimeoutException);
         }
       };
       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