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 C992F200C75 for ; Sun, 21 May 2017 12:29:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BD27D160BC5; Sun, 21 May 2017 10:29:09 +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 0F728160BA4 for ; Sun, 21 May 2017 12:29:08 +0200 (CEST) Received: (qmail 17064 invoked by uid 500); 21 May 2017 10:29:08 -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 17055 invoked by uid 99); 21 May 2017 10:29:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 May 2017 10:29:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D88891802CC for ; Sun, 21 May 2017 10:29:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MluphV7euVtY for ; Sun, 21 May 2017 10:29:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 745985FB80 for ; Sun, 21 May 2017 10:29:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9A813E01D9 for ; Sun, 21 May 2017 10:29:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id DAC7B21B56 for ; Sun, 21 May 2017 10:29:04 +0000 (UTC) Date: Sun, 21 May 2017 10:29:04 +0000 (UTC) From: "Aljoscha Krettek (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-6620) Add KeyGroupCheckpointedOperator interface that works for checkpointing key-groups MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 21 May 2017 10:29:10 -0000 [ https://issues.apache.org/jira/browse/FLINK-6620?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1601= 8778#comment-16018778 ]=20 Aljoscha Krettek commented on FLINK-6620: ----------------------------------------- [~lzljs3620320] Unfortunately I'm very busy last week and the next week (Ap= acheCon and Strata London) so I'm very slow to respond to anything. Thanks = for opening this issue! =F0=9F=98=83 [~srichter] What do you think about this? We've had an interface like this = for a while in Beam to support writing custom things along with the timers = in key-grouped state. > Add KeyGroupCheckpointedOperator interface that works for checkpointing k= ey-groups > -------------------------------------------------------------------------= --------- > > Key: FLINK-6620 > URL: https://issues.apache.org/jira/browse/FLINK-6620 > Project: Flink > Issue Type: Improvement > Components: DataStream API > Reporter: Jingsong Lee > Priority: Minor > > [~aljoscha] We have discussed it on: https://issues.apache.org/jira/brows= e/BEAM-1393 > {code} > /** > * This interface is used to checkpoint key-groups state. > */ > public interface KeyGroupCheckpointedOperator extends KeyGroupRestoringOp= erator{ > /** > * Snapshots the state for a given {@code keyGroupIdx}. > * > *

AbstractStreamOperator would call this hook in > * AbstractStreamOperator.snapshotState() while iterating over the key = groups. > * @param keyGroupIndex the id of the key-group to be put in the snapsh= ot. > * @param out the stream to write to. > */ > void snapshotKeyGroupState(int keyGroupIndex, DataOutputStream out) thr= ows Exception; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)