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 08:04:50 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 1524e6320 -> 42f6f68c7


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/42f6f68c
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/42f6f68c
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/42f6f68c

Branch: refs/heads/branch-2.8
Commit: 42f6f68c7809817ada42357ce61144a701f6d6c6
Parents: 1524e63
Author: Varun Saxena <varunsaxena@apache.org>
Authored: Fri Sep 23 13:34:18 2016 +0530
Committer: Varun Saxena <varunsaxena@apache.org>
Committed: Fri Sep 23 13:34:18 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/42f6f68c/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 1f662dd..c433854 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
@@ -241,7 +241,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