Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 86B3F200B6B for ; Fri, 9 Sep 2016 11:16:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 857EC160ACE; Fri, 9 Sep 2016 09:16:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F3FC7160AB6 for ; Fri, 9 Sep 2016 11:16:21 +0200 (CEST) Received: (qmail 63479 invoked by uid 500); 9 Sep 2016 09:16:21 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 63444 invoked by uid 99); 9 Sep 2016 09:16:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 09:16:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1CB492C1B7D for ; Fri, 9 Sep 2016 09:16:21 +0000 (UTC) Date: Fri, 9 Sep 2016 09:16:21 +0000 (UTC) From: "Yechao Chen (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-14727) llap-server may case file descriptor leak in BuddyAllocator class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Sep 2016 09:16:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yechao Chen updated HIVE-14727: ------------------------------- Status: Patch Available (was: In Progress) [~prasanth_j] [~sershe] may someone please review this small 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)