Browse Source

Revert "TimelineClient failed to retry on java.net.SocketTimeoutException: Read timed out"

This reverts commit 2e6ee957161ab63a02a7861b727efa6310b275b2.
Varun Saxena 8 years ago
parent
commit
3293a7d92d

+ 1 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java

@@ -265,8 +265,7 @@ 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 SocketTimeoutException);
+              && (e.getCause() instanceof ConnectException);
         }
       };
       try {