Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
kafka-3.0.0
Description
As described in FLIP-288, dynamic partition discovery is disabled by default, and users have to specify the interval of discovery in order to turn it on.
This subtask is to enable Dynamic Partition Discovery by Default in Kafka Source.
Partition discovery is performed on the KafkaSourceEnumerator, which asynchronously fetches topic metadata from the Kafka cluster and checks if there are any new topics and partitions. This should not cause performance issues on the Flink side.
On the Kafka broker side, partition discovery sends a MetadataRequest to the Kafka broker to fetch topic information. Considering that the Kafka broker has its metadata cache and the default request frequency is relatively low (once every 30 seconds), this is not a heavy operation, and the broker's performance will not be significantly affected.
Attachments
Issue Links
- links to