From issues-return-6273-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Thu Apr 25 05:44:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B5352180638 for ; Thu, 25 Apr 2019 07:44:04 +0200 (CEST) Received: (qmail 38544 invoked by uid 500); 25 Apr 2019 05:44:01 -0000 Mailing-List: contact issues-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list issues@phoenix.apache.org Received: (qmail 38516 invoked by uid 99); 25 Apr 2019 05:44:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Apr 2019 05:44:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6729BE2B0D for ; Thu, 25 Apr 2019 05:44:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1B765256E3 for ; Thu, 25 Apr 2019 05:44:00 +0000 (UTC) Date: Thu, 25 Apr 2019 05:44:00 +0000 (UTC) From: "Karan Mehta (JIRA)" To: issues@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-5187) Avoid using FileInputStream and FileOutputStream 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/PHOENIX-5187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16825741#comment-16825741 ] Karan Mehta commented on PHOENIX-5187: -------------------------------------- [~ckulkarni] I see that you have commented that it has been committed. Can you confirm it and update the status of Jira accordingly? > Avoid using FileInputStream and FileOutputStream > ------------------------------------------------- > > Key: PHOENIX-5187 > URL: https://issues.apache.org/jira/browse/PHOENIX-5187 > Project: Phoenix > Issue Type: Improvement > Affects Versions: 4.14.1 > Reporter: Aman Poonia > Assignee: Aman Poonia > Priority: Major > Attachments: PHOENIX-5187-4.x-HBase-1.3.patch > > > Avoid using FileInputStream and FileOutputStream because of > [https://bugs.openjdk.java.net/browse/JDK-8080225] > The file objects doesnot get cleaned up even if we close it until full GC happens > This has been resolved in jdk10 > A quick workaround is to use File.newInputStream and Files.newOutputStream -- This message was sent by Atlassian JIRA (v7.6.3#76005)