turboFei commented on code in PR #7033:
URL: https://github.com/apache/kyuubi/pull/7033#discussion_r2056958331


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/operation/BatchJobSubmission.scala:
##########
@@ -223,6 +227,14 @@ class BatchJobSubmission(
               case Some(appId) => monitorBatchJob(appId)
             }
           case Some(metadata) =>
+            if (StringUtils.isNoneBlank(metadata.engineId, 
metadata.engineState)) {
+              _applicationInfo = Some(new ApplicationInfo(
+                id = metadata.engineId,
+                name = metadata.engineName,
+                state = ApplicationState.withName(metadata.engineState),
+                url = Option(metadata.engineUrl),
+                error = metadata.engineError))

Review Comment:
   try to read the application info from metadata first.
   
   In case it has been finished and metadata updated by peer.
   
https://github.com/apache/kyuubi/blob/7e199d6fdbdf52222bb3eadd056b9e5a2295f36e/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/BatchesResource.scala#L369-L385
   



-- 
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: notifications-unsubscr...@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org
For additional commands, e-mail: notifications-h...@kyuubi.apache.org

Reply via email to