[
https://issues.apache.org/jira/browse/BEAM-12080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354562#comment-17354562
]
Beam JIRA Bot commented on BEAM-12080:
--------------------------------------
This issue is P2 but has been unassigned without any comment for 60 days so it
has been labeled "stale-P2". If this issue is still affecting you, we care!
Please comment and remove the label. Otherwise, in 14 days the issue will be
moved to P3.
Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed
explanation of what these priorities mean.
> Writing a bounded source to PubsubLiteIO using DirectRunner does not exit
> -------------------------------------------------------------------------
>
> Key: BEAM-12080
> URL: https://issues.apache.org/jira/browse/BEAM-12080
> Project: Beam
> Issue Type: Bug
> Components: extensions-java-gcp, runner-direct
> Affects Versions: 2.28.0
> Reporter: Tianzi Cai
> Priority: P2
> Labels: PubsubLiteIO, java, stale-P2
>
> 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.
> {code:java}
> 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));
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)