YARN-9168. DistributedShell client timeout should be -1 by default. Contributed by Zhankun Tang.
(cherry picked from commit 6cec90653d
)
This commit is contained in:
parent
cb0f45b75b
commit
84928ba3d1
|
@ -1071,8 +1071,11 @@ public class Client {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (System.currentTimeMillis() > (clientStartTime + clientTimeout)) {
|
// The value equal or less than 0 means no timeout
|
||||||
LOG.info("Reached client specified timeout for application. Killing application");
|
if (clientTimeout > 0
|
||||||
|
&& System.currentTimeMillis() > (clientStartTime + clientTimeout)) {
|
||||||
|
LOG.info("Reached client specified timeout for application. " +
|
||||||
|
"Killing application");
|
||||||
forceKillApplication(appId);
|
forceKillApplication(appId);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue