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

Fix memory leak in hive streaming

    Details

      Description

      1) HiveStreamingConnection.Builder#init() adds a shutdown hook handler via ShutdownHookManager.addShutdownHook but it is never removed which causes all the handlers to accumulate and hence a memory leak.

      2) AbstractRecordWriter creates an instance of FileSystem but does not close it which in turn causes a leak due to accumulation in FileSystem$Cache#map

       

        Attachments

        1. HIVE-20979.1.patch
          3 kB
          Shubham Chaurasia
        2. HIVE-20979.1.patch
          3 kB
          Shubham Chaurasia
        3. HIVE-20979.2.patch
          3 kB
          Shubham Chaurasia
        4. HIVE-20979.3.patch
          3 kB
          Shubham Chaurasia
        5. HIVE-20979.4.patch
          3 kB
          Shubham Chaurasia
        6. HIVE-20979.5.patch
          3 kB
          Shubham Chaurasia

          Issue Links

            Activity

              People

              • Assignee:
                ShubhamChaurasia Shubham Chaurasia
                Reporter:
                ShubhamChaurasia Shubham Chaurasia
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: