Abacn commented on code in PR #36141: URL: https://github.com/apache/beam/pull/36141#discussion_r2347801695
########## sdks/java/io/pulsar/src/main/java/org/apache/beam/sdk/io/pulsar/WriteToPulsarDoFn.java: ########## @@ -53,6 +59,11 @@ public void processElement(@Element byte[] messageToSend) throws Exception { producer.send(messageToSend); } + @FinishBundle + public void finishBundle() throws PulsarClientException { + producer.close(); + } + @Teardown public void teardown() throws PulsarClientException { producer.close(); Review Comment: removed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org