pan3793 commented on code in PR #7262:
URL: https://github.com/apache/kyuubi/pull/7262#discussion_r2609295033
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/KyuubiRestFrontendService.scala:
##########
@@ -190,7 +192,18 @@ class KyuubiRestFrontendService(override val serverable:
Serverable)
val batchId = batchSession.batchJobSubmissionOp.batchId
try {
val task: Future[Unit] = batchRecoveryExecutor.submit(() =>
-
Utils.tryLogNonFatalError(sessionManager.openBatchSession(batchSession)))
+ Utils.tryLogNonFatalError {
+ sessionManager.openBatchSession(batchSession)
+ if (recoveryWaitEngineSubmission) {
+ info(s"Waiting for batch[$batchId] engine submission during
recovery")
+ val batchOp = batchSession.batchJobSubmissionOp
+ while
(batchSession.getSessionEvent.forall(_.exception.isEmpty) &&
+ !batchOp.appStarted &&
+ !OperationState.isTerminal(batchOp.getStatus.state)) {
+ Thread.sleep(300)
Review Comment:
it's fine then
--
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]