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 01D15200BDC for ; Wed, 14 Dec 2016 19:13:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0039D160B19; Wed, 14 Dec 2016 18:13:03 +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 492F8160B0D for ; Wed, 14 Dec 2016 19:13:02 +0100 (CET) Received: (qmail 28775 invoked by uid 500); 14 Dec 2016 18:13:01 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 28766 invoked by uid 99); 14 Dec 2016 18:13:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2016 18:13:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1F10FC00E7 for ; Wed, 14 Dec 2016 18:13:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2HVbzocpSlbM for ; Wed, 14 Dec 2016 18:13:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 63CAC5FBC2 for ; Wed, 14 Dec 2016 18:12:59 +0000 (UTC) Received: (qmail 28248 invoked by uid 99); 14 Dec 2016 18:12:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2016 18:12:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 544DA2C03DD for ; Wed, 14 Dec 2016 18:12:58 +0000 (UTC) Date: Wed, 14 Dec 2016 18:12:58 +0000 (UTC) From: "Amit Sela (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BEAM-853) Force streaming execution on batch pipelines for testing. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Dec 2016 18:13:03 -0000 [ https://issues.apache.org/jira/browse/BEAM-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amit Sela updated BEAM-853: --------------------------- Description: The SDK's {{streaming}} tests actually use a {{BoundedReadFromUnboundedSource}} while "forcing" a streaming pipeline (although the input is {{Read.Bounded}}). The {{TestSparkRunner}} should be able to use the underlying {{UnboundedSource}} to execute a streaming pipeline. was: Beam's {{RunnableOnService}} tests for runners are written with bounded reads so the SparkRunner should force a streaming pipeline on an "all-batch" pipeline. Currently the runner will decide the translation (batch/streaming) according to the input PCollection boundness (in case of input, according to output). One way to overcome this would be to override this behaviour in {{TestSparkRunner}}. Another challenge is the implementation itself - we could clearly read the RDD and create a single-RDD-DStream of it (following RDDs will be empty) but this will miss the point of testing streaming pipelines both for testing the execution of {{Read.Unbounded}} and for testing across-microbatches (tests state management). Finally, we have to consider how this is going to play nicely with {{SplittableDoFn}}. > Force streaming execution on batch pipelines for testing. > --------------------------------------------------------- > > Key: BEAM-853 > URL: https://issues.apache.org/jira/browse/BEAM-853 > Project: Beam > Issue Type: Bug > Components: runner-spark > Reporter: Amit Sela > Assignee: Amit Sela > > The SDK's {{streaming}} tests actually use a {{BoundedReadFromUnboundedSource}} while "forcing" a streaming pipeline (although the input is {{Read.Bounded}}). > The {{TestSparkRunner}} should be able to use the underlying {{UnboundedSource}} to execute a streaming pipeline. -- This message was sent by Atlassian JIRA (v6.3.4#6332)