Skip to content

[SPARK-29596][Web UI] Task duration not updating for running tasks #27026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

Le-Dai
Copy link

@Le-Dai Le-Dai commented Dec 27, 2019

What changes were proposed in this pull request?

Changed the source of web ui duration information

Why are the changes needed?

Task duration not updating for running tasks

Does this PR introduce any user-facing change?

no

How was this patch tested?

cat web ui

Copy link
Member

@Ngone51 Ngone51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please explain more about why task duration doesn't update in UI?

Besides, does this problem only exists in branch-2.4? Because I also see the same code in master branch.

@@ -848,7 +848,7 @@ private[ui] class TaskPagedTable(
</div>
</td>
<td>{UIUtils.formatDate(task.launchTime)}</td>
<td>{formatDuration(task.taskMetrics.map(_.executorRunTime))}</td>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MrDLontheway , please note that this change is intentionally introduced in #23081.

@Le-Dai
Copy link
Author

Le-Dai commented Dec 28, 2019

Would you please explain more about why task duration doesn't update in UI?

Besides, does this problem only exists in branch-2.4? Because I also see the same code in master branch.

Thank you for your reminder, during the task running process, because the executive run time is not updated, the duration will not be updated. I will seek other solutions

@Ngone51
Copy link
Member

Ngone51 commented Dec 28, 2019

because the executive run time is not updated, the duration will not be updated.

I know that executor run time doesn't update according to your description, but I also want to know the root cause why it doesn't change.

@gengliangwang
Copy link
Member

@MrDLontheway could you provide more details and screenshot for the issue?
Also, PR should be created against the master branch.

@Le-Dai
Copy link
Author

Le-Dai commented Jan 3, 2020

ui
when task in RUNNING status , duration not update.
3.0.0 Removed the detail list and changed the duration calculation method, I don't know if it should be submitted to the master branch

Copy link
Contributor

@planga82 planga82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this change. There are a lot of more information that is used from metrics to create TaskDataWrapper, so, the other metrics are not updated? If this is the case the problem could be we are not updating metrics in the right way and we have to change it and not this specific metric only.

var duration: Long = 0
var executorRunTime: Long = 0

if (info.finished) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vars are not very cool in scala... how about something like this?

val (duration, executorRunTime) = if (info.finished) {
      (info.duration, metrics.executorRunTime)
    } else {
      val timeRunning = info.timeRunning(lastUpdateTime.getOrElse(System.currentTimeMillis()))
      (timeRunning, timeRunning)
    }

@holdenk
Copy link
Contributor

holdenk commented Apr 27, 2020

Jenkins ok to test

@SparkQA
Copy link

SparkQA commented Apr 28, 2020

Test build #121933 has finished for PR 27026 at commit a63a4bb.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@github-actions
Copy link

github-actions bot commented Aug 7, 2020

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Aug 7, 2020
@github-actions github-actions bot closed this Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants