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 1CFF0200B9A for ; Fri, 7 Oct 2016 23:03:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1BBDA160AE9; Fri, 7 Oct 2016 21:03: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 6050F160AC6 for ; Fri, 7 Oct 2016 23:03:21 +0200 (CEST) Received: (qmail 26070 invoked by uid 500); 7 Oct 2016 21:03: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 26037 invoked by uid 99); 7 Oct 2016 21:03:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2016 21:03:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6AA5E2C014E for ; Fri, 7 Oct 2016 21:03:20 +0000 (UTC) Date: Fri, 7 Oct 2016 21:03:20 +0000 (UTC) From: "static-max (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-4779) Restoring from savepoint fails when BucketingSink has not yet created folder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 07 Oct 2016 21:03:22 -0000 static-max created FLINK-4779: --------------------------------- Summary: Restoring from savepoint fails when BucketingSink has not yet created folder Key: FLINK-4779 URL: https://issues.apache.org/jira/browse/FLINK-4779 Project: Flink Issue Type: Bug Components: filesystem-connector Affects Versions: 1.2.0 Reporter: static-max When I restore from a savepoint, starting the job fails when the root-folder used by the BucketingSink not yet exists. This may happen in my case, when the source for my sink has not yet emitted any messages and I did not create the folder by hand. The complete folder structure is not required by the BucketingSink as it will create itermediate folders by itself when creating the bucket. I suggest that this does not prevent the job from being restarted. {code} 10/07/2016 22:50:53 Source: Kafka Consumer for X -> (Sink: HDFS for X, Sink: X)(1/1) switched to FAILED java.lang.Exception: Failed to restore state to function: Error while deleting old pending files. at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.restoreState(AbstractUdfStreamOperator.java:184) at org.apache.flink.streaming.runtime.tasks.StreamTask.restoreState(StreamTask.java:550) at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:255) at org.apache.flink.runtime.taskmanager.Task.run(Task.java:609) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: Error while deleting old pending files. at org.apache.flink.streaming.connectors.fs.bucketing.BucketingSink.restoreState(BucketingSink.java:805) at org.apache.flink.streaming.connectors.fs.bucketing.BucketingSink.restoreState(BucketingSink.java:139) at org.apache.flink.streaming.api.operators.AbstractUdfStreamOperator.restoreState(AbstractUdfStreamOperator.java:182) ... 4 more Caused by: java.io.FileNotFoundException: File hdfs://server:8020/1/2/3/4/flink does not exist. at org.apache.hadoop.hdfs.DistributedFileSystem$DirListingIterator.(DistributedFileSystem.java:948) at org.apache.hadoop.hdfs.DistributedFileSystem$DirListingIterator.(DistributedFileSystem.java:927) at org.apache.hadoop.hdfs.DistributedFileSystem$19.doCall(DistributedFileSystem.java:872) at org.apache.hadoop.hdfs.DistributedFileSystem$19.doCall(DistributedFileSystem.java:868) at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81) at org.apache.hadoop.hdfs.DistributedFileSystem.listLocatedStatus(DistributedFileSystem.java:886) at org.apache.hadoop.fs.FileSystem.listLocatedStatus(FileSystem.java:1696) at org.apache.hadoop.fs.FileSystem$6.(FileSystem.java:1791) at org.apache.hadoop.fs.FileSystem.listFiles(FileSystem.java:1787) at org.apache.flink.streaming.connectors.fs.bucketing.BucketingSink.restoreState(BucketingSink.java:784) ... 6 more {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)