You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2014/03/18 00:32:42 UTC

[jira] [Updated] (TEZ-940) TaskSchedulerAppCallbackWrapper leaks memory via a CompletionService

     [ https://issues.apache.org/jira/browse/TEZ-940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gopal V updated TEZ-940:
------------------------

    Attachment: TaskAllocatedLeak.png

> TaskSchedulerAppCallbackWrapper leaks memory via a CompletionService
> --------------------------------------------------------------------
>
>                 Key: TEZ-940
>                 URL: https://issues.apache.org/jira/browse/TEZ-940
>             Project: Apache Tez
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Gopal V
>         Attachments: TaskAllocatedLeak.png
>
>
> The ExecutorService in TaskSchedulerAppCallbackWrapper uses an ExecutorCompletionService to keep track of submitted tasks and their results.
> The difference between the Executor and Completion services is that without calling a take()/poll(), the latter leaks FutureTask objects which are held in memory until shutdown.
> This results in a leak, from TaskAllocatedCallable -> TezVertexImpl -> TezDagImpl -> Configuration.
> !TaskAllocatedLeak.png!



--
This message was sent by Atlassian JIRA
(v6.2#6252)