Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83FBB10668 for ; Thu, 17 Apr 2014 18:11:25 +0000 (UTC) Received: (qmail 46696 invoked by uid 500); 17 Apr 2014 18:11:20 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 46542 invoked by uid 500); 17 Apr 2014 18:11:18 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 46415 invoked by uid 99); 17 Apr 2014 18:11:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 18:11:17 +0000 Date: Thu, 17 Apr 2014 18:11:17 +0000 (UTC) From: "Junping Du (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-1870) FileInputStream is not closed in ProcfsBasedProcessTree#constructProcessSMAPInfo() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973219#comment-13973219 ] Junping Du commented on YARN-1870: ---------------------------------- I just commit this patch to trunk and branch2. Thanks Fengdong for the patch and Ted for review! > FileInputStream is not closed in ProcfsBasedProcessTree#constructProcessSMAPInfo() > ---------------------------------------------------------------------------------- > > Key: YARN-1870 > URL: https://issues.apache.org/jira/browse/YARN-1870 > Project: Hadoop YARN > Issue Type: Improvement > Components: resourcemanager > Affects Versions: 2.4.0 > Reporter: Ted Yu > Assignee: Fengdong Yu > Priority: Minor > Fix For: 2.5.0 > > Attachments: YARN-1870.patch > > > {code} > List lines = IOUtils.readLines(new FileInputStream(file)); > {code} > FileInputStream is not closed. -- This message was sent by Atlassian JIRA (v6.2#6252)