You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Daniel Halperin (JIRA)" <ji...@apache.org> on 2016/10/20 21:47:02 UTC
[jira] [Closed] (BEAM-196) Pipeline options must be available
Context in DoFn.startBundle
[ https://issues.apache.org/jira/browse/BEAM-196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Halperin closed BEAM-196.
--------------------------------
> Pipeline options must be available Context in DoFn.startBundle
> --------------------------------------------------------------
>
> Key: BEAM-196
> URL: https://issues.apache.org/jira/browse/BEAM-196
> Project: Beam
> Issue Type: Bug
> Components: runner-flink
> Reporter: Mark Shields
> Assignee: Maximilian Michels
> Fix For: 0.1.0-incubating
>
>
> Our (not yet merged) Java Pubsub implementation has code like this in a DoFn:
> @Override
> public void startBundle(Context c) throws Exception {
> Preconditions.checkState(pubsubClient == null);
> pubsubClient = PubsubClient.newClient(transportType,
> timestampLabel, idLabel, c.getPipelineOptions().as(PubsubOptions.class));
> super.startBundle(c);
> }
> This fails with NPE since the pipeline options are not conveyed via the context.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)