From b58651d8d4ebc27e34a6bd2403e466884c600ff1 Mon Sep 17 00:00:00 2001 From: Varun Saxena Date: Fri, 23 Sep 2016 13:30:56 +0530 Subject: [PATCH] YARN-5539. TimelineClient failed to retry on java.net.SocketTimeoutException: Read timed out (Junping Du via Varun Saxena) --- .../apache/hadoop/yarn/client/api/impl/TimelineClientImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 1f662dda449..c433854016f 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 {