Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-196

Pipeline options must be available Context in DoFn.startBundle

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 0.1.0-incubating
    • runner-flink
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              mxm Maximilian Michels
              mshields822 Mark Shields
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: