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 8B5AA200C36 for ; Fri, 10 Mar 2017 11:12:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 89D8B160B69; Fri, 10 Mar 2017 10:12: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 D4FF5160B82 for ; Fri, 10 Mar 2017 11:12:08 +0100 (CET) Received: (qmail 5917 invoked by uid 500); 10 Mar 2017 10:12:08 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 5907 invoked by uid 99); 10 Mar 2017 10:12:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2017 10:12:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 893F81A021A for ; Fri, 10 Mar 2017 10:12:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id RK83L8yYssJZ for ; Fri, 10 Mar 2017 10:12:06 +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 D2E295F252 for ; Fri, 10 Mar 2017 10:12:05 +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 AFF6CE06B9 for ; Fri, 10 Mar 2017 10:12:04 +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 64D03243A8 for ; Fri, 10 Mar 2017 10:12:04 +0000 (UTC) Date: Fri, 10 Mar 2017 10:12:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-1674) Flink user state GC depends on order of timer firing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Mar 2017 10:12:09 -0000 [ https://issues.apache.org/jira/browse/BEAM-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904835#comment-15904835 ] ASF GitHub Bot commented on BEAM-1674: -------------------------------------- GitHub user aljoscha opened a pull request: https://github.com/apache/beam/pull/2217 [BEAM-1674] Fix Flink State GC This is a proper solution, as discussed in the Jira issue. If we merge this we can drop #2215. (Thanks for quickly providing that PR, though!) R: @kennknowles You can merge this pull request into a Git repository by running: $ git pull https://github.com/aljoscha/beam jira-1674-fix-flink-gc Alternatively you can review and apply these changes as the patch at: https://github.com/apache/beam/pull/2217.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2217 ---- commit bf6d2748c8876a7415290069163625598928f02f Author: Aljoscha Krettek Date: 2017-03-10T07:29:27Z Move GC timer checking to StatefulDoFnRunner.CleanupTimer commit 1a8e1f7463cbc7c6b5edfe1dbbc98502e5612511 Author: Aljoscha Krettek Date: 2017-03-10T10:07:00Z Introduce Flink-specific state GC implementations We now set the GC timer for window.maxTimestamp() + 1 to ensure that a user timer set for window.maxTimestamp() still has all state. This also adds tests for late data dropping and state GC specifically for the Flink DoFnOperator. ---- > Flink user state GC depends on order of timer firing > ---------------------------------------------------- > > Key: BEAM-1674 > URL: https://issues.apache.org/jira/browse/BEAM-1674 > Project: Beam > Issue Type: Bug > Components: runner-flink > Affects Versions: 0.5.0 > Reporter: Aljoscha Krettek > Assignee: Aljoscha Krettek > Priority: Blocker > Fix For: 0.6.0 > > > The newly added {{ParDoTest.testEventTimeTimerMultipleKeys()}} fails because the {{DoFn}} sets a timer for {{window.maxTimestamp()}} which also happens to be the GC timer for the user state. The Flink Runner uses timers to schedule GC, the user-set timer and the GC timer have a different timer id, so they don't clash. However, if the GC timer is being processed before the user timer then the user doesn't have a chance to access the state anymore because it will already be cleared out by the time the user timer is being processed. -- This message was sent by Atlassian JIRA (v6.3.15#6346)