Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5345

Operator::close() leaks Operator::out, holding reference to buffers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.13.0
    • Component/s: Query Processor
    • Labels:
    • Environment:

      Ubuntu, LXC, jdk6-x86_64

    • Release Note:
      Prevent OutputCollector leaks from an Operator by clearing the Operator::out reference on close()

      Description

      When processing multiple splits on the same operator pipeline, the output collector in Operator has a held reference, which causes issues.

      Operator::close() does not de-reference the OutputCollector object Operator::out held by the object.

      This means that trying to allocate space for a new OutputCollector causes an OOM because the old one is still reachable.

        Attachments

        1. out-leak.png
          94 kB
          Gopal V
        2. HIVE-5345.01.patch
          0.5 kB
          Gopal V

          Activity

            People

            • Assignee:
              gopalv Gopal V
              Reporter:
              gopalv Gopal V
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: