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 808B1200B6F for ; Wed, 24 Aug 2016 11:54:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F2CD160AB1; Wed, 24 Aug 2016 09:54: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 C6D2C160AA4 for ; Wed, 24 Aug 2016 11:54:21 +0200 (CEST) Received: (qmail 8895 invoked by uid 500); 24 Aug 2016 09:54:20 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 8884 invoked by uid 99); 24 Aug 2016 09:54:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2016 09:54:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BF1CB2C0031 for ; Wed, 24 Aug 2016 09:54:20 +0000 (UTC) Date: Wed, 24 Aug 2016 09:54:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4278) Unclosed FSDataOutputStream in multiple files in the project MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 24 Aug 2016 09:54:22 -0000 [ https://issues.apache.org/jira/browse/FLINK-4278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434623#comment-15434623 ] ASF GitHub Bot commented on FLINK-4278: --------------------------------------- Github user StephanEwen commented on the issue: https://github.com/apache/flink/pull/2403 Sorry, this does not build right now. I would review it once it builds. > Unclosed FSDataOutputStream in multiple files in the project > ------------------------------------------------------------ > > Key: FLINK-4278 > URL: https://issues.apache.org/jira/browse/FLINK-4278 > Project: Flink > Issue Type: Bug > Affects Versions: 1.0.3 > Reporter: Neelesh Srinivas Salian > Assignee: Neelesh Srinivas Salian > > After FLINK-4259, I did a check and found that the following files don't have the closing of the FSDataOutputStream. > The following are the files and the corresponding methods missing the close() > 1) FSDataOutputStream.java adding a close method in the abstract class > 2) FSStateBackend flush() and write() - closing the FSDataOutputStream > 3) StringWriter.java write() > 4) FileSystemStateStore putState() - closing the FSDataOutputStream > 5) HadoopDataOutputStream.java not too sure if this needs closing. > 6) FileSystemStateStorageHelper.java store() need closing for both outStream and the ObjectOutputStream > The options to think would be to either close or use IOUtils.closeQuietly() > Any thoughts? -- This message was sent by Atlassian JIRA (v6.3.4#6332)