YARN-5539. TimelineClient failed to retry on java.net.SocketTimeoutException: Read timed out (Junping Du via Varun Saxena)
This commit is contained in:
parent
3293a7d92d
commit
b8a2d7b8fc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue