You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Chamikara Madhusanka Jayalath (Jira)" <ji...@apache.org> on 2021/01/23 02:21:00 UTC

[jira] [Commented] (BEAM-7573) beam PubsubIO sink to /topics/dev/null is broken

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

Chamikara Madhusanka Jayalath commented on BEAM-7573:
-----------------------------------------------------

Looking at the code seems like this is just a fake path (used for testing ?) - [https://github.com/apache/beam/blob/3bb232fb098700de408f574585dfe74bbaff7230/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java#L343]

Don't think users should actually try to write to this topic. 

I'll close this for now but please reopen if above assessment is incorrect.

> beam PubsubIO sink to /topics/dev/null is broken
> ------------------------------------------------
>
>                 Key: BEAM-7573
>                 URL: https://issues.apache.org/jira/browse/BEAM-7573
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>            Reporter: David Rieber
>            Priority: P3
>
> An attempt to write to topic /topics/dev/null results in a pipeline error:
> Exception in thread "main" java.lang.IllegalStateException: Malformed topic path projects//topics//topics/dev/null
>         at com.google.common.base.Preconditions.checkState(Preconditions.java:518)
>         at org.apache.beam.sdk.io.gcp.pubsub.PubsubClient$TopicPath.getV1Beta1Path(PubsubClient.java:264)
>         at org.apache.beam.runners.dataflow.DataflowRunner$StreamingPubsubIOWriteTranslator.translate(DataflowRunner.java:1152)
> However, the beam PubsubIO sources imply this should work: search for TOPIC_DEV_NULL_TEST_NAME.
>  



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