Re: Apache Beam pipeline stuck indefinitely using Wait.on transform with JdbcIO

2023-04-22 Thread Juan Cuzmar
writeVoid() and write() plus withResults() return the same PCollection AFAIK. In any case i updated the code and same thing happens PCollection result = p. apply("Pubsub", PubsubIO.readMessagesWithAttributes().fromSubscription(String.format("projects/%s/subscriptions/%s", optio

Re: Apache Beam pipeline stuck indefinitely using Wait.on transform with JdbcIO

2023-04-22 Thread Reuven Lax via user
The other problem you have here is that you have not set a window. Wait.on waits for the end of the current window before triggering. The default Window is the GlobalWindow, so as written Wait.on will wait for the end of time (or until you drain the pipeline, which will also trigger the GlobalWindo

Re: Apache Beam pipeline stuck indefinitely using Wait.on transform with JdbcIO

2023-04-22 Thread Juan Cuzmar
Same result: PCollection result = p .apply("Pubsub", PubsubIO.readMessagesWithAttributes().fromSubscription(String.format("projects/%s/subscriptions/%s", options.getProjectId(), subscription))) .apply("Transform", ParDo.of(new MyTransformer())) .app

Can some one please remove me from this mailing list

2023-04-22 Thread Unais T
Can some one please remove me from this mailing list

Re: Can some one please remove me from this mailing list

2023-04-22 Thread Bruno Volpato via user
Hi Unais, If you want to unsubscribe from this mailing list, you need to send a blank email to user-unsubscr...@beam.apache.org. On Sat, Apr 22, 2023 at 12:54 PM Unais T wrote: > Can some one please remove me from this mailing list

Re: Apache Beam pipeline stuck indefinitely using Wait.on transform with JdbcIO

2023-04-22 Thread Reuven Lax via user
What runner are you using to run this pipeline? On Sat, Apr 22, 2023 at 9:47 AM Juan Cuzmar wrote: > Same result: > PCollection result = p > .apply("Pubsub", > PubsubIO.readMessagesWithAttributes().fromSubscription(String.format("projects/%s/subscriptions/%s", > options.getProjec

Re: Apache Beam pipeline stuck indefinitely using Wait.on transform with JdbcIO

2023-04-22 Thread Juan Cuzmar
I'm developing with direct runner. but should go to dataflow when deployed. Original Message On Apr 22, 2023, 13:13, Reuven Lax via user wrote: > What runner are you using to run this pipeline? > > On Sat, Apr 22, 2023 at 9:47 AM Juan Cuzmar wrote: > >> Same result: >> PCollect

Re: Apache Beam pipeline stuck indefinitely using Wait.on transform with JdbcIO

2023-04-22 Thread Reuven Lax via user
Oh - in that case it's possible that the problem may be the direct runner's implementation of the pubsub source - especially the watermark. For a direct-runner test, I recommend using TestStream (which allows you to advance the watermark manually, so you can test windowing). On Sat, Apr 22, 2023 a

Re: Apache Beam pipeline stuck indefinitely using Wait.on transform with JdbcIO

2023-04-22 Thread Juan Cuzmar
I see. if you don't mind could you give me an example? i am not very knowledgeable in apache beam. Original Message On Apr 22, 2023, 13:39, Reuven Lax via user wrote: > Oh - in that case it's possible that the problem may be the direct runner's > implementation of the pubsub s