Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7323

Allow closing scan nodes before all returned batches are destroyed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Backend

    Description

      If the scan node finishes early because of a limit at the scan or higher up in the plan tree, returned batches may still be in use by nodes higher up in the operator tree that reference memory still owned by the Scanner object, or enqueued in the RowBatchQueue. We should add a method that can be called before Close() to attach all of those resources to the trailing batch. E.g. AcquireResourcesFinal().

      This method needs to be separate from Close() because Close() releases all resources accounted against the node being closed (e.g. reservations but ownership of the returned resources is only done lazily when required by a blocking node).

      Attachments

        Activity

          People

            Unassigned Unassigned
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: