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 AA492200C57 for ; Sat, 15 Apr 2017 08:43:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A8D83160BA0; Sat, 15 Apr 2017 06:43:47 +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 EF7D8160B9D for ; Sat, 15 Apr 2017 08:43:46 +0200 (CEST) Received: (qmail 30124 invoked by uid 500); 15 Apr 2017 06:43:46 -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 30114 invoked by uid 99); 15 Apr 2017 06:43:46 -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; Sat, 15 Apr 2017 06:43:46 +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 8C6791805DC for ; Sat, 15 Apr 2017 06:43:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 z4IGXAnPFQSI for ; Sat, 15 Apr 2017 06:43:44 +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 5D1A85FACA for ; Sat, 15 Apr 2017 06:43:43 +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 84807E073C for ; Sat, 15 Apr 2017 06:43:42 +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 E8A7521B44 for ; Sat, 15 Apr 2017 06:43:41 +0000 (UTC) Date: Sat, 15 Apr 2017 06:43:41 +0000 (UTC) From: "Aljoscha Krettek (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-1983) SDF should properly support windowed side inputs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 15 Apr 2017 06:43:47 -0000 [ https://issues.apache.org/jira/browse/BEAM-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15969830#comment-15969830 ] Aljoscha Krettek commented on BEAM-1983: ---------------------------------------- This is related to BEAM-1850. [~jkff] Remember we had the discussion on why this part is a bit strange: https://github.com/apache/beam/blob/5824bb4b5700b5230f569c570d5e8ed2d11cedf2/runners/flink/runner/src/main/java/org/apache/beam/runners/flink/FlinkStreamingTransformTranslators.java#L1081-L1081? > SDF should properly support windowed side inputs > ------------------------------------------------ > > Key: BEAM-1983 > URL: https://issues.apache.org/jira/browse/BEAM-1983 > Project: Beam > Issue Type: Bug > Components: runner-apex, runner-dataflow, runner-direct, runner-flink, sdk-java-core > Reporter: Eugene Kirpichov > Assignee: Eugene Kirpichov > > Currently there is no test coverage for Splittable DoFn + windowed side inputs, especially when not all of the side input windows are ready. > Moreover, current implementation of SDF in the direct runner is definitely wrong: it uses a ParDoEvaluator to run the ProcessFn, and this ParDoEvaluator looks at the wrong windows to decide which windows are ready and which are not: https://github.com/apache/beam/blob/master/runners/direct-java/src/main/java/org/apache/beam/runners/direct/ParDoEvaluator.java#L134 - the WindowedValue in question is a KeyedWorkItem, and they are always in the global window, but the important windows are windows of elements inside this KWI's elementsIterable(). > The Flink implementation is also wrong in the same way. > This JIRA is to: > 1) add test coverage for this case > 2) implement proper support in all runners > I believe the easiest way to do 2) is to: > - make SplittableParDo, in case the DoFn has side inputs, pre-explode windows before feeding them into GroupByKeyIntoKeyedWorkItems , so that the resulting KWI's have elements only in a single window > - tweak runners to look at the proper window, and assert that there's only one window, while evaluating ProcessFn, in case the DoFn uses side inputs -- This message was sent by Atlassian JIRA (v6.3.15#6346)