You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Brian Hulette (Jira)" <ji...@apache.org> on 2020/08/19 18:19:00 UTC

[jira] [Commented] (BEAM-10761) Add TestPubsub.waitForSubscription

    [ https://issues.apache.org/jira/browse/BEAM-10761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17180738#comment-17180738 ] 

Brian Hulette commented on BEAM-10761:
--------------------------------------

Looks like we already have TestPubsub.checkIfAnySubscriptionExists for this.

> Add TestPubsub.waitForSubscription
> ----------------------------------
>
>                 Key: BEAM-10761
>                 URL: https://issues.apache.org/jira/browse/BEAM-10761
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-gcp, testing
>            Reporter: Brian Hulette
>            Assignee: Brian Hulette
>            Priority: P2
>
> We have several tests that rely on TestPubsubSignal.signalStart as an imperfect signal that a pipeline has created a subscription to a PubSub topic, and it is safe for us to start injecting data. This has the potential to be flaky.
> We should instead poll pubsub until we can observe a subscription was created. This can be implemented via a method TestPubsub.waitForSubscription



--
This message was sent by Atlassian Jira
(v8.3.4#803005)