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 77A9918E16 for ; Mon, 13 Jul 2015 17:27:23 +0000 (UTC) Received: (qmail 73212 invoked by uid 500); 13 Jul 2015 16:59:27 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 68270 invoked by uid 500); 13 Jul 2015 16:59:24 -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 66612 invoked by uid 99); 13 Jul 2015 16:56:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2015 16:56:05 +0000 Date: Mon, 13 Jul 2015 16:56:05 +0000 (UTC) From: "Stephan Ewen (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FLINK-2296) Checkpoint committing broken 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/FLINK-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stephan Ewen resolved FLINK-2296. --------------------------------- Resolution: Fixed Fix Version/s: 0.10 Fixed via aa5e5b3087a68f2aac792c0b0fc64b4f9c707e9b > Checkpoint committing broken > ---------------------------- > > Key: FLINK-2296 > URL: https://issues.apache.org/jira/browse/FLINK-2296 > Project: Flink > Issue Type: Bug > Components: Streaming > Affects Versions: 0.10 > Reporter: Robert Metzger > Assignee: Robert Metzger > Priority: Blocker > Fix For: 0.10 > > > While working on fixing the failing {{PersistentKafkaSource}} test, I realized that the recent changes introduced in "New operator state interfaces" https://github.com/apache/flink/pull/747 (sadly, there is no JIRA for this huge change) introduced some changes that I was not aware of. > * The {{CheckpointCoordinator}} is now sending the StateHandle back to the TaskManager when confirming a checkpoint. For the non-FS case, this means that for checkpoint committed operators, the state is send twice over the wire for each checkpoint. > For the FS case, this means that for every checkpoint commit, the state needs to be retrieved from the file system. > Did you conduct any tests on a cluster to measure the performance impact of that? > I see three approaches for fixing the aforementioned issue: > - keep it this way (probably poor performance) > - always keep the state for uncommitted checkpoints in the TaskManager's memory. Therefore, we need to come up with a good eviction strategy. I don't know the implications for large state. > - change the interface and do not provide the state to the user function (=old behavior). This forces users to think about how they want to keep the state (but it is also a bit more work for them) > I would like to get some feedback on how to solve this issue! > Also, I discovered the following bugs: > * Non-source tasks didn't get {{commitCheckpoint}} calls, even though they implemented the {{CheckpointCommitter}} interface. I fixed this issue in my current branch. > * The state passed to the {{commitCheckpoint}} method did not match with the subtask id. So user functions were receiving states from other parallel instances. This lead to faulty behavior in the KafkaSource (thats also the reason why the KafkaITCase was failing more frequently ...). I fixed this issue in my current branch. -- This message was sent by Atlassian JIRA (v6.3.4#6332)