syhily commented on code in PR #29: URL: https://github.com/apache/flink-connector-pulsar/pull/29#discussion_r1108044338
########## flink-connector-pulsar/src/main/java/org/apache/flink/connector/pulsar/source/enumerator/subscriber/impl/TopicPatternSubscriber.java: ########## @@ -52,11 +62,80 @@ public TopicPatternSubscriber(Pattern topicPattern, RegexSubscriptionMode subscr TopicName destination = TopicName.get(topicPattern.pattern()); NamespaceName namespaceName = destination.getNamespaceObject(); this.namespace = namespaceName.toString(); + this.subscriptionMode = convertRegexSubscriptionMode(subscriptionMode); + this.useBinaryProtocol = true; } @Override public Set<TopicPartition> getSubscribedTopicPartitions( RangeGenerator generator, int parallelism) throws Exception { + Set<String> topics; + if (useBinaryProtocol) { + try { + topics = queryTopicsByInternalProtocols(); Review Comment: This should be a mistake from my side. After testing the new protocol with old Pulsar broker. It's binary compatible. I add this comment weeks ago because I didn't find the bug from Pulsar side which can't filter some regex. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org