JingGe commented on code in PR #19366:
URL: https://github.com/apache/flink/pull/19366#discussion_r845948429


##########
flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/source/KafkaSourceBuilder.java:
##########
@@ -184,6 +184,18 @@
         return this;
     }
 
+    /**
+     * Set the Kafka subscriber to use to discover new splits.
+     *
+     * @param kafkaSubscriber the {@link KafkaSubscriber} to use for split 
discovery.
+     * @return this KafkaSourceBuilder.
+     */
+    public KafkaSourceBuilder<OUT> setKafkaSubscriber(KafkaSubscriber 
kafkaSubscriber) {
+        ensureSubscriberIsNull("subscriber");

Review Comment:
   Will it have been set anywhere before this new setter is called? I thought 
the idea of this method is to force the builder using the given 
`KafkaSubscriber`, even if it has been set before with a different subscriber.



-- 
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

Reply via email to