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 6943A200BA1 for ; Mon, 17 Oct 2016 12:24:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 67D2D160AE5; Mon, 17 Oct 2016 10:24:00 +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 B382B160AF2 for ; Mon, 17 Oct 2016 12:23:59 +0200 (CEST) Received: (qmail 54371 invoked by uid 500); 17 Oct 2016 10:23:58 -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 54194 invoked by uid 99); 17 Oct 2016 10:23:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2016 10:23:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 79F322C4C7A for ; Mon, 17 Oct 2016 10:23:58 +0000 (UTC) Date: Mon, 17 Oct 2016 10:23:58 +0000 (UTC) From: "Nikolay Vasilishin (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4492) Cleanup files from canceled snapshots MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 17 Oct 2016 10:24:00 -0000 [ https://issues.apache.org/jira/browse/FLINK-4492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15581831#comment-15581831 ] Nikolay Vasilishin commented on FLINK-4492: ------------------------------------------- [~srichter] Does this issue still persist? I've runned some tests to reproduce this bug, but the checkpoint directory was empty after them. If I'm not mistaken, {noformat} /** * If the stream is only closed, we remove the produced file (cleanup through the auto close * feature, for example). This method throws no exception if the deletion fails, but only * logs the error. */ @Override public void close() { if (!closed) { closed = true; if (outStream != null) { try { outStream.close(); fs.delete(statePath, false); // attempt to delete the parent (will fail and be ignored if the parent has more files) try { fs.delete(basePath, false); } catch (IOException ignored) {} } catch (Exception e) { LOG.warn("Cannot delete closed and discarded state stream for " + statePath, e); } } } } {noformat} this method (at org.apache.flink.runtime.state.filesystem.FsCheckpointStreamFactory) properly deletes all checkpoint files. > Cleanup files from canceled snapshots > ------------------------------------- > > Key: FLINK-4492 > URL: https://issues.apache.org/jira/browse/FLINK-4492 > Project: Flink > Issue Type: Bug > Reporter: Stefan Richter > Assignee: Nikolay Vasilishin > Priority: Minor > > Current checkpointing only closes CheckpointStateOutputStreams on cancel, but incomplete files are not properly deleted from the filesystem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)