You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Yechao Chen (JIRA)" <ji...@apache.org> on 2016/09/09 09:10:20 UTC
[jira] [Updated] (HIVE-14727) llap-server may case file descriptor
leak in BuddyAllocator class
[ https://issues.apache.org/jira/browse/HIVE-14727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yechao Chen updated HIVE-14727:
-------------------------------
Attachment: HIVE-14727.patch
> llap-server may case file descriptor leak in BuddyAllocator class
> -----------------------------------------------------------------
>
> Key: HIVE-14727
> URL: https://issues.apache.org/jira/browse/HIVE-14727
> Project: Hive
> Issue Type: Bug
> Components: llap
> Affects Versions: 2.2.0
> Reporter: Yechao Chen
> Assignee: Yechao Chen
> Attachments: HIVE-14727.patch
>
>
> llap-server,the method preallocate(int) of BuddyAllocator may case file descriptor leak when FileChannel map allocate memory error.
> the code:
> //here if failed
> ByteBuffer rwbuf = rwf.getChannel().map(MapMode.READ_WRITE, 0, arenaSize);
> // A mapping, once established, is not dependent upon the file channel that was used to
> // create it. delete file and hold onto the map
> //can not close() and delete file
> rwf.close();
> rf.delete();
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)