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

Add TestPubsub.waitForSubscription

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Not applicable
    • Component/s: io-java-gcp, testing
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bhulette Brian Hulette
                Reporter:
                bhulette Brian Hulette
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m