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

[jira] [Resolved] (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 ]

Siddharth Seth resolved TEZ-940.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4.0

Committed to master.

> 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
>            Assignee: Siddharth Seth
>             Fix For: 0.4.0
>
>         Attachments: TEZ-940.1.txt, 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)