You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Enzo Dechaene (Jira)" <ji...@apache.org> on 2023/03/14 13:03:00 UTC

[jira] [Commented] (FLINK-31371) Support subscribing non-existed topics in Pulsar source

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

Enzo Dechaene commented on FLINK-31371:
---------------------------------------

This message also appears for the Pulsar Sink, is it possible to make the change for the Sink in this feature ? [~syhily]

> Support subscribing non-existed topics in Pulsar source
> -------------------------------------------------------
>
>                 Key: FLINK-31371
>                 URL: https://issues.apache.org/jira/browse/FLINK-31371
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Pulsar
>    Affects Versions: 1.15.3
>            Reporter: Enzo Dechaene
>            Assignee: Yufan Sheng
>            Priority: Major
>
> *Describe the bug*
> With a Pulsar 2.8.4 server, a Flink stream containing Pulsar sources or sinks will fail at startup if the topic doesn't exist.
>  
> *To Reproduce*
> Create a stream with :
>  * Flink 1.15.2
>  * Pulsar 2.8.4
>  * with a Pulsar source or sink linked to a non existant topic
>  * Start the stream
>  
> *Expected behavior*
> If the topic doesn't exist, it should be created at the first connection of the source or sink without error.
>  
> *Additional context*
> In the TopicListSubscriber class of the connector, the method getSubscribedTopicPartitions() try to get the metadata of a topic by doing that :
>  
> {code:java}
> TopicMetadata metadata = queryTopicMetadata(pulsarAdmin, topic);{code}
>  
> If the topic doesn't exist, I get a NullPointerException on the metadata
> We created a previous [ticket|https://github.com/streamnative/pulsar-flink/issues/366] on the Pulsar connector and it was fixed



--
This message was sent by Atlassian Jira
(v8.20.10#820010)