turboFei commented on code in PR #4119:
URL: https://github.com/apache/kyuubi/pull/4119#discussion_r1064255071
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/operation/BatchJobSubmission.scala:
##########
@@ -96,7 +99,14 @@ class BatchJobSubmission(
override private[kyuubi] def currentApplicationInfo: Option[ApplicationInfo]
= {
// only the ApplicationInfo with non-empty id is valid for the operation
- applicationManager.getApplicationInfo(builder.clusterManager(),
batchId).filter(_.id != null)
+ val applicationInfo =
+ applicationManager.getApplicationInfo(builder.clusterManager(),
batchId).filter(_.id != null)
+ applicationInfo.foreach { _ =>
+ if (_appSubmissionTime <= 0) {
+ _appSubmissionTime = System.currentTimeMillis()
Review Comment:
> why we donot set it in submitAndMonitorBatchJob method ?
Because in the `submitAndMonitorBatchJob` method, there is interval to track
the app state.
And for the `getBatch` api, it will also call currentApplicationState to
build the batch report, to keep the state align, it is better to update the app
submission time in `currentApplicationState`.
--
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]