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 2EDF1200B44 for ; Thu, 14 Jul 2016 15:41:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2DBD7160A63; Thu, 14 Jul 2016 13:41: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 78DAB160A60 for ; Thu, 14 Jul 2016 15:41:21 +0200 (CEST) Received: (qmail 44062 invoked by uid 500); 14 Jul 2016 13:41: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 44047 invoked by uid 99); 14 Jul 2016 13:41:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 13:41:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8A4D52C027F for ; Thu, 14 Jul 2016 13:41:20 +0000 (UTC) Date: Thu, 14 Jul 2016 13:41:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4067) Add version header to savepoints MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 14 Jul 2016 13:41:22 -0000 [ https://issues.apache.org/jira/browse/FLINK-4067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15376926#comment-15376926 ] ASF GitHub Bot commented on FLINK-4067: --------------------------------------- Github user uce commented on the issue: https://github.com/apache/flink/pull/2194 After talking with @tillrohrmann and @StephanEwen, we discovered some obvious cases where restoring from 1.0 savepoints won't work in 1.1, for example if window state is involved, which is serialized in a different format since 1.0. I think the same is true for RocksDB. Should we by default throw an Exception when a user tries to restore a Flink 1.0 savepoint with 1.1? On the other hand, there are cases where it would work as expected... but if it does not work the error message will not be very helpful. > Add version header to savepoints > -------------------------------- > > Key: FLINK-4067 > URL: https://issues.apache.org/jira/browse/FLINK-4067 > Project: Flink > Issue Type: Improvement > Affects Versions: 1.0.3 > Reporter: Ufuk Celebi > Assignee: Ufuk Celebi > Fix For: 1.1.0 > > > Adding a header with version information to savepoints ensures that we can migrate savepoints between Flink versions in the future (for example when changing internal serialization formats between versions). > After talking with Till, we propose to add the following meta data: > - Magic number (int): identify data as savepoint > - Version (int): savepoint version (independent of Flink version) > - Data Offset (int): specifies at which point the actual savepoint data starts. With this, we can allow future Flink versions to add fields to the header without breaking stuff, e.g. Flink 1.1 could read savepoints of Flink 2.0. > For Flink 1.0 savepoint support, we have to try reading the savepoints without a header before failing if we don't find the magic number. -- This message was sent by Atlassian JIRA (v6.3.4#6332)