You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "yanghua (via GitHub)" <gi...@apache.org> on 2024/04/15 10:23:20 UTC
Re: [PR] [KYUUBI-6278] Update DB state when the query fallback to resource manager and the batch app is terminal [kyuubi]
yanghua commented on code in PR #6284:
URL: https://github.com/apache/kyuubi/pull/6284#discussion_r1565547785
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/BatchesResource.scala:
##########
@@ -332,6 +339,12 @@ private[v1] class BatchesResource extends ApiRequestContext with Logging {
Some(userName),
// prevent that the batch be marked as terminated if application state is NOT_FOUND
Some(metadata.engineOpenTime).filter(_ > 0).orElse(Some(System.currentTimeMillis)))
+ // if the batch app is terminated, update the metadata in db.
+ if (BatchJobSubmission.applicationTerminated(batchAppStatus)) {
+ sessionManager.updateMetadata(Metadata(
+ identifier = batchId,
+ engineState = batchAppStatus.get.state.toString))
Review Comment:
+1
--
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-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org