dongjoon-hyun commented on a change in pull request #35162:
URL: https://github.com/apache/spark/pull/35162#discussion_r782491809
##########
File path: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
##########
@@ -856,6 +856,9 @@ private[spark] class SparkSubmit extends Logging {
if (args.verbose && isSqlShell(childMainClass)) {
childArgs ++= Seq("--verbose")
}
+
+ sparkConf.set("spark.app.submitTime", System.currentTimeMillis().toString)
Review comment:
`spark.app.startTime` is also setting like this, but `startTime` is
propagated to more classes differently because it's used in non-UI usage.
- The same usage.
```
_conf.set("spark.app.startTime", startTime.toString)
```
```
core/src/main/scala/org/apache/spark/executor/Executor.scala:
private val appStartTime = conf.getLong("spark.app.startTime", 0)
```
- The following is another usage pattern of `startTime`.
```
Some(SparkUI.create(Some(this), _statusStore, _conf, _env.securityManager,
appName, "", startTime))
```
```
listenerBus.post(SparkListenerApplicationStart(appName, Some(applicationId),
startTime, sparkUser, applicationAttemptId,
schedulerBackend.getDriverLogUrls,
schedulerBackend.getDriverAttributes))
```
--
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]