|
@@ -1072,14 +1072,17 @@ public class Client {
|
|
|
+ " YarnState=" + state.toString() + ", DSFinalStatus=" + dsStatus.toString()
|
|
|
+ ". Breaking monitoring loop");
|
|
|
return false;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
- if (System.currentTimeMillis() > (clientStartTime + clientTimeout)) {
|
|
|
- LOG.info("Reached client specified timeout for application. Killing application");
|
|
|
+ // The value equal or less than 0 means no timeout
|
|
|
+ if (clientTimeout > 0
|
|
|
+ && System.currentTimeMillis() > (clientStartTime + clientTimeout)) {
|
|
|
+ LOG.info("Reached client specified timeout for application. " +
|
|
|
+ "Killing application");
|
|
|
forceKillApplication(appId);
|
|
|
- return false;
|
|
|
+ return false;
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|