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

Writing a bounded source to PubsubLiteIO using DirectRunner does not exit

Details

    Description

      Writing a bounded source (with a single message) to Pub/Sub Lite using `PubsubLiteIO` via `DirectRunner` succeeds, but the pipeline does not exit after the work is completed.

      When using `DataflowRunner`, the job stops and shuts down cleanly.

      import com.google.cloud.pubsublite.Message;
      import org.apache.beam.sdk.io.gcp.pubsublite.PubsubLiteIO;
      // ...
      Message message =
          Message.builder()
              .setData(ByteString.copyFromUtf8("Hello world from Dataflow!"))
              .setEventTime(fromMillis(System.currentTimeMillis()))
              .build();
      
      pipeline
          .apply(Create.of(message.toProto()))
          .apply("Write to Pub/Sub Lite", PubsubLiteIO.write(publisherOptions));
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tianzi Tianzi Cai
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment