YARN-9168. DistributedShell client timeout should be -1 by default. Contributed by Zhankun Tang.

(cherry picked from commit 6cec90653d)
This commit is contained in:
Sunil G 2019-02-25 15:28:45 +05:30
parent f282f9c362
commit 359e459df1
1 changed files with 10 additions and 7 deletions

View File

@ -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");
forceKillApplication(appId);
return false;
}
}
// 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;
}
}
}