rliuamzn commented on code in PR #358:
URL: https://github.com/apache/incubator-livy/pull/358#discussion_r1001103665
##########
server/src/main/scala/org/apache/livy/utils/SparkYarnApp.scala:
##########
@@ -282,34 +286,45 @@ class SparkYarnApp private[utils] (
try {
Clock.sleep(pollInterval.toMillis)
- // Refresh application state
- val appReport = yarnClient.getApplicationReport(appId)
- yarnDiagnostics = getYarnDiagnostics(appReport)
- changeState(mapYarnState(
- appReport.getApplicationId,
- appReport.getYarnApplicationState,
- appReport.getFinalApplicationStatus))
-
- if (isProcessErrExit()) {
- if (killed) {
- changeState(SparkApp.State.KILLED)
- } else {
- changeState(SparkApp.State.FAILED)
+ if (!isProcessAlive()) {
Review Comment:
I see your point. Thank you for the explanation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]