Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-940

TaskSchedulerAppCallbackWrapper leaks memory via a CompletionService

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • None
    • None

    Description

      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.

      Attachments

        1. TEZ-940.1.txt
          10 kB
          Siddharth Seth
        2. TaskAllocatedLeak.png
          144 kB
          Gopal Vijayaraghavan

        Activity

          People

            sseth Siddharth Seth
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: