ulysses-you commented on code in PR #6028:
URL: https://github.com/apache/kyuubi/pull/6028#discussion_r1470631109


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/KyuubiBatchService.scala:
##########
@@ -94,8 +94,13 @@ class KyuubiBatchService(
                   metadata.appState match {
                     // app that is not submitted to resource manager
                     case None | Some(ApplicationState.NOT_FOUND) => false
-                    // app that is pending in resource manager
-                    case Some(ApplicationState.PENDING) => false
+                    // app that is pending in resource manager while the local 
startup
+                    // process is alive. For example, in Spark YARN cluster 
mode, if set
+                    // spark.yarn.submit.waitAppCompletion=false, the local 
spark-submit
+                    // process exits immediately once Application goes 
ACCEPTED status,
+                    // even no resource could be allocated for the AM 
container.
+                    case Some(ApplicationState.PENDING) if 
batchSession.startupProcessAlive =>
+                      false

Review Comment:
   should it be `true` ?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to