You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "yogesh garg (JIRA)" <ji...@apache.org> on 2018/10/31 19:00:02 UTC

[jira] [Commented] (SPARK-25901) Barrier mode spawns a bunch of threads that get collected on gc

    [ https://issues.apache.org/jira/browse/SPARK-25901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16670573#comment-16670573 ] 

yogesh garg commented on SPARK-25901:
-------------------------------------

I am working on this task.

> Barrier mode spawns a bunch of threads that get collected on gc
> ---------------------------------------------------------------
>
>                 Key: SPARK-25901
>                 URL: https://issues.apache.org/jira/browse/SPARK-25901
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.4.0
>            Reporter: yogesh garg
>            Priority: Major
>         Attachments: Screen Shot 2018-10-31 at 11.57.25 AM.png, Screen Shot 2018-10-31 at 11.57.42 AM.png
>
>
> After a barrier job is terminated (successfully or interrupted), the accompanying thread created with `Timer` in `BarrierTaskContext` shows in a waiting state until gc is called. We should probably have just one thread to schedule all such tasks, since they just log every 60 seconds.
> Here's a screen shot of the threads growing with more tasks:
> Here's a screen shot of constant number of threads with more tasks:



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org