I have a potential issue I am debugging with `org.apache.beam.sdk.io.gcp.pubsub`. When using the GCP PubSub service no messages are received on the DirectRunner or the DataflowRunner when using PubsubIO.readStrings(). When using the DirectRunner and the Pubsub Emulator it works correctly locally.
I have been working with this issue for the past few days and believe it may be related to the PubsubIO library.
I am listening to a topic (also tried a subscription) using:
Alternatively this method works:
The code works perfectly with the Pubsub Emulator using readStrings() and after switching to readMessagesWithAttributes() everything works correctly on both the emulator as well as GCP.
I am using Beam "2.13.0" with "beam-runners-google-cloud-dataflow-java" with Java 8.
My "gcloud" versions:
Google Cloud SDK 256.0.0