You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Luke Cwik (JIRA)" <ji...@apache.org> on 2018/01/10 19:23:03 UTC
[jira] [Commented] (BEAM-3297) StartBundle/FinishBundle should be
called only if there are elements
[ https://issues.apache.org/jira/browse/BEAM-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320918#comment-16320918 ]
Luke Cwik commented on BEAM-3297:
---------------------------------
If a runner harness asks you to execute a bundle, you should always go through the start bundle/finish bundle even if the runner sends the SDK zero elements.
This is important because people write functions that take zero inputs and produce one or more outputs.
> StartBundle/FinishBundle should be called only if there are elements
> ---------------------------------------------------------------------
>
> Key: BEAM-3297
> URL: https://issues.apache.org/jira/browse/BEAM-3297
> Project: Beam
> Issue Type: Bug
> Components: sdk-go
> Reporter: Henning Rohde
> Priority: Minor
> Fix For: Not applicable
>
>
> I believe the semantics is lazy. Exec currently calls SB/FB eagerly irrespectively of whether any elements are emitted.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)