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

This commit is contained in:
Varun Saxena 2016-09-23 13:34:18 +05:30
parent 1524e63206
commit 42f6f68c78
1 changed files with 2 additions and 1 deletions

View File

@ -241,7 +241,8 @@ public class TimelineClientImpl extends TimelineClient {
public boolean shouldRetryOn(Exception e) { public boolean shouldRetryOn(Exception e) {
// Only retry on connection exceptions // Only retry on connection exceptions
return (e instanceof ClientHandlerException) return (e instanceof ClientHandlerException)
&& (e.getCause() instanceof ConnectException); && (e.getCause() instanceof ConnectException ||
e.getCause() instanceof SocketTimeoutException);
} }
}; };
try { try {