This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 8d3199d5414 [SPARK-45462][CORE][WEBUI] Show `Duration` in
`ApplicationPage`
8d3199d5414 is described below
commit 8d3199d54144c39b46576a86ecd000094524e8cc
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sun Oct 8 09:38:04 2023 -0700
[SPARK-45462][CORE][WEBUI] Show `Duration` in `ApplicationPage`
### What changes were proposed in this pull request?
This PR aims to show `Duration` information in `ApplicationPage`.
### Why are the changes needed?
`Duration` is already exposed in `MasterPage` as `Duration` column in the
list.

When we visit the Application detail page, we had better show it
consistently. Otherwise, we need to go back to the list and search the app id.
In the following images, `Duration` is added after `Submit Date` row.
- **Live App**

- **Completed App**

### Does this PR introduce _any_ user-facing change?
No. This is a new addition to the UI.
### How was this patch tested?
Manual review.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #43279 from dongjoon-hyun/SPARK-45462.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../main/scala/org/apache/spark/deploy/master/ui/ApplicationPage.scala | 1 +
1 file changed, 1 insertion(+)
diff --git
a/core/src/main/scala/org/apache/spark/deploy/master/ui/ApplicationPage.scala
b/core/src/main/scala/org/apache/spark/deploy/master/ui/ApplicationPage.scala
index 9e10a0bbf39..202926233d9 100644
---
a/core/src/main/scala/org/apache/spark/deploy/master/ui/ApplicationPage.scala
+++
b/core/src/main/scala/org/apache/spark/deploy/master/ui/ApplicationPage.scala
@@ -90,6 +90,7 @@ private[ui] class ApplicationPage(parent: MasterWebUI)
extends WebUIPage("app")
{formatResourceRequirements(app.desc.resourceReqsPerExecutor)}
</li>
<li><strong>Submit Date:</strong>
{UIUtils.formatDate(app.submitDate)}</li>
+ <li><strong>Duration:</strong>
{UIUtils.formatDuration(app.duration)}</li>
<li><strong>State:</strong> {app.state}</li>
{
if (!app.isFinished) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]