You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Maximilian Michels (JIRA)" <ji...@apache.org> on 2016/06/08 16:12:21 UTC
[jira] [Resolved] (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 ]
Maximilian Michels resolved BEAM-196.
-------------------------------------
Resolution: Fixed
Resolved in eced106e50ddb257524a7826ab7d27254be89da8
> 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)