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

Pipeline options must be available Context in DoFn.startBundle

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0-incubating
    • Component/s: runner-flink
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: