Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3046

Memory Leak after cancelling a query

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Component/s: Execution - Flow
    • Labels:
      None

      Description

      git.commit.id.abbrev=d10769f

      There seems to be a memory leak after cancelling the query immediately after it is started

      0: jdbc:drill:schema=dfs_eea> select * from sys.memory;
      +------------+------------+--------------+------------+----------------+--------------------+------------+
      |  hostname  | user_port  | heap_current |  heap_max  | direct_current | jvm_direct_current | direct_max |
      +------------+------------+--------------+------------+----------------+--------------------+------------+
      | qa-node191.qa.lab | 31010      | 171717928    | 4151836672 | 11799087       | 100676662          | 34359738368 |
      | qa-node190.qa.lab | 31010      | 286131528    | 4151836672 | 7750365        | 50345014           | 34359738368 |
      +------------+------------+--------------+------------+----------------+--------------------+------------+
      2 rows selected (1.022 seconds)
      0: jdbc:drill:schema=dfs_eea> select * from `memleak.json`;
      Error: SQL statement execution canceled; resultSet closed. (state=,code=0)
      0: jdbc:drill:schema=dfs_eea> select * from sys.memory;
      +------------+------------+--------------+------------+----------------+--------------------+------------+
      |  hostname  | user_port  | heap_current |  heap_max  | direct_current | jvm_direct_current | direct_max |
      +------------+------------+--------------+------------+----------------+--------------------+------------+
      | qa-node190.qa.lab | 31010      | 293009856    | 4151836672 | 7750365        | 83899446           | 34359738368 |
      | qa-node191.qa.lab | 31010      | 633074864    | 4151836672 | 4307525428     | 4479530038         | 34359738368 |
      +------------+------------+--------------+------------+----------------+--------------------+------------+
      2 rows selected (0.775 seconds)
      

        Attachments

        1. memleak.json
          3.70 MB
          Rahul Kumar Challapalli
        2. DRILL-3046.1.patch.txt
          3 kB
          Abdel Hakim Deneche

          Activity

            People

            • Assignee:
              adeneche Abdel Hakim Deneche
              Reporter:
              rkins Rahul Kumar Challapalli
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: