Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-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 D626C183BF for ; Mon, 19 Oct 2015 04:06:06 +0000 (UTC) Received: (qmail 58784 invoked by uid 500); 19 Oct 2015 04:06:06 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 58440 invoked by uid 500); 19 Oct 2015 04:06:05 -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 58428 invoked by uid 99); 19 Oct 2015 04:06:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2015 04:06:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 03BEE2C14F3 for ; Mon, 19 Oct 2015 04:06:05 +0000 (UTC) Date: Mon, 19 Oct 2015 04:06:05 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-2866) Potential resource leak due to unclosed ObjectInputStream in FileSerializableStateHandle MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ted Yu created FLINK-2866: ----------------------------- Summary: Potential resource leak due to unclosed ObjectInputStream in FileSerializableStateHandle Key: FLINK-2866 URL: https://issues.apache.org/jira/browse/FLINK-2866 Project: Flink Issue Type: Bug Reporter: Ted Yu Here is related code: {code} public T getState(ClassLoader classLoader) throws Exception { FSDataInputStream inStream = getFileSystem().open(getFilePath()); ObjectInputStream ois = new InstantiationUtil.ClassLoaderObjectInputStream(inStream, classLoader); return (T) ois.readObject(); {code} ObjectInputStream should be closed upon exit from the method -- This message was sent by Atlassian JIRA (v6.3.4#6332)