beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-196) Pipeline options must be available Context in DoFn.startBundle
Date Tue, 19 Apr 2016 07:51:25 GMT

    [ https://issues.apache.org/jira/browse/BEAM-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15247333#comment-15247333
] 

ASF GitHub Bot commented on BEAM-196:
-------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-beam/pull/200


> 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
>
> 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)

Mime
View raw message