[ https://issues.apache.org/jira/browse/HIVE-20979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16701517#comment-16701517 ]
ASF GitHub Bot commented on HIVE-20979: --------------------------------------- GitHub user ShubhamChaurasia opened a pull request: https://github.com/apache/hive/pull/495 HIVE-20979: Fix memory leak in hive streaming Fixes two memory leaks. -In HiveStreamingConnection due to Shutdown hook not being removed. -In AbstractRecordWriter due to FileSystem not being closed. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ShubhamChaurasia/hive HIVE-20979 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/hive/pull/495.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #495 ---- commit a6985008713ee731182db774626f0b75277b6172 Author: ShubhamChaurasia <shubh.chaurasia@...> Date: 2018-11-28T08:19:16Z HIVE-20979: Fix memory leak in hive streaming ---- > Fix memory leak in hive streaming > --------------------------------- > > Key: HIVE-20979 > URL: https://issues.apache.org/jira/browse/HIVE-20979 > Project: Hive > Issue Type: Bug > Components: Streaming > Affects Versions: 3.1.1 > Reporter: Shubham Chaurasia > Assignee: Shubham Chaurasia > Priority: Critical > Labels: pull-request-available > > {{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 > -- This message was sent by Atlassian JIRA (v7.6.3#76005)