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 08A75200D55 for ; Sat, 9 Dec 2017 18:27:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 071FD160C0E; Sat, 9 Dec 2017 17:27:11 +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 4F78A160BFE for ; Sat, 9 Dec 2017 18:27:10 +0100 (CET) Received: (qmail 89292 invoked by uid 500); 9 Dec 2017 17:27:09 -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 89283 invoked by uid 99); 9 Dec 2017 17:27:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Dec 2017 17:27:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F2D9DC2BD2 for ; Sat, 9 Dec 2017 17:27:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 77nu8ppH60TG for ; Sat, 9 Dec 2017 17:27:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 44B7F5F5D2 for ; Sat, 9 Dec 2017 17:27: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 BCB27E0D67 for ; Sat, 9 Dec 2017 17:27:03 +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 9B687212FD for ; Sat, 9 Dec 2017 17:27:01 +0000 (UTC) Date: Sat, 9 Dec 2017 17:27:01 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-8116) Stale comments referring to Checkpointed interface MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 09 Dec 2017 17:27:11 -0000 [ https://issues.apache.org/jira/browse/FLINK-8116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16284847#comment-16284847 ] ASF GitHub Bot commented on FLINK-8116: --------------------------------------- Github user ggevay commented on a diff in the pull request: https://github.com/apache/flink/pull/5121#discussion_r155927615 --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/source/SourceFunction.java --- @@ -34,17 +34,17 @@ * The run method can run for as long as necessary. The source must, however, react to an * invocation of {@link #cancel()} by breaking out of its main loop. * - *

Checkpointed Sources

+ *

CheckpointedFunction Sources

* - *

Sources that also implement the {@link org.apache.flink.streaming.api.checkpoint.Checkpointed} + *

Sources that also implement the {@link org.apache.flink.streaming.api.checkpoint.CheckpointedFunction} * interface must ensure that state checkpointing, updating of internal state and emission of * elements are not done concurrently. This is achieved by using the provided checkpointing lock * object to protect update of state and emission of elements in a synchronized block. * *

This is the basic pattern one should follow when implementing a (checkpointed) source: * *

{@code
    - *  public class ExampleSource implements SourceFunction, Checkpointed {
    + *  public class ExampleSource implements SourceFunction, CheckpointedFunction {
    --- End diff --
    
    You can see the function bodies here:
    https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/stream/state/state.html#stateful-source-functions


> Stale comments referring to Checkpointed interface
> --------------------------------------------------
>
>                 Key: FLINK-8116
>                 URL: https://issues.apache.org/jira/browse/FLINK-8116
>             Project: Flink
>          Issue Type: Bug
>          Components: DataStream API, Documentation
>            Reporter: Gabor Gevay
>            Priority: Trivial
>              Labels: starter
>             Fix For: 1.5.0
>
>
> Between Flink 1.1 and 1.2, the {{Checkpointed}} interface was superseded by the {{CheckpointedFunction}} interface.
> However, in {{SourceFunction}} there are two comments still referring to the old {{Checkpointed}} interface. (The code examples there also need to be modified.)
> Note that the problem also occurs in {{StreamExecutionEnvironment}}, and possibly other places as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)