GitHub user zsxwing opened a pull request:

    https://github.com/apache/spark/pull/7071

    [SPARK-2017][WebUI]Defer executing drawTaskAssignmentTimeline until page 
loaded to avoid to freeze the page

    When there are massive tasks in the stage page (such as, running 
`sc.parallelize(1 to 100000, 10000).count()`), `Event Timeline` needs 15+ 
seconds to render the graph (drawTaskAssignmentTimeline) in my environment. The 
page is unresponsive until the graph is ready.
    
    However, since `Event Timeline` is hidden by default, we can defer 
`drawTaskAssignmentTimeline` until page loaded to avoid freezing the page. So 
that the user can view the page while rendering `Event Timeline` in the 
background.
    
    This PR puts `drawTaskAssignmentTimeline` into `$(function(){})` to avoid 
blocking loading page.
    
    This is only a partial fix for SPARK-2017.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zsxwing/spark SPARK-2017

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/7071.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #7071
    
----
commit 5b65226b04b9068c267987d73e2112f4e52b9cc3
Author: zsxwing <[email protected]>
Date:   2015-06-28T14:18:11Z

    Defer executing drawTaskAssignmentTimeline until page loaded to avoid to 
freeze the page

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to