Return-Path: X-Original-To: apmail-gora-dev-archive@www.apache.org Delivered-To: apmail-gora-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FDE118D5E for ; Fri, 5 Feb 2016 06:32:40 +0000 (UTC) Received: (qmail 87943 invoked by uid 500); 5 Feb 2016 06:32:40 -0000 Delivered-To: apmail-gora-dev-archive@gora.apache.org Received: (qmail 87865 invoked by uid 500); 5 Feb 2016 06:32:40 -0000 Mailing-List: contact dev-help@gora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gora.apache.org Delivered-To: mailing list dev@gora.apache.org Received: (qmail 87523 invoked by uid 99); 5 Feb 2016 06:32:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2016 06:32:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E677A2C1F58 for ; Fri, 5 Feb 2016 06:32:39 +0000 (UTC) Date: Fri, 5 Feb 2016 06:32:39 +0000 (UTC) From: "Lewis John McGibbney (JIRA)" To: dev@gora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GORA-440) Fix several instances of 'Method may fail to close stream' within gora-accumulo BinaryEncoder 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/GORA-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lewis John McGibbney updated GORA-440: -------------------------------------- Fix Version/s: (was: 0.8) 0.6.1 > Fix several instances of 'Method may fail to close stream' within gora-accumulo BinaryEncoder > --------------------------------------------------------------------------------------------- > > Key: GORA-440 > URL: https://issues.apache.org/jira/browse/GORA-440 > Project: Apache Gora > Issue Type: Bug > Components: gora-accumulo > Affects Versions: 0.6.1 > Reporter: Lewis John McGibbney > Assignee: Lewis John McGibbney > Fix For: 0.7 > > > A number of methods within the BinaryEncoder class create an IO stream object, does not assign it to any fields, pass it to other methods that might close it, or return it, and does not appear to close the stream on all paths out of the method. This may result in a file descriptor leak. It is generally a good idea to use a finally block to ensure that streams are closed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)