Class KafkaSourceEnumerator

    • Method Detail

      • start

        public void start()
        Start the enumerator.

        Depending on partitionDiscoveryIntervalMs, the enumerator will trigger a one-time partition discovery, or schedule a callable for discover partitions periodically.

        The invoking chain of partition discovery would be:

        1. getSubscribedTopicPartitions() in worker thread
        2. checkPartitionChanges(java.util.Set<org.apache.kafka.common.TopicPartition>, java.lang.Throwable) in coordinator thread
        3. initializePartitionSplits(org.apache.flink.connector.kafka.source.enumerator.KafkaSourceEnumerator.PartitionChange) in worker thread
        4. handlePartitionSplitChanges(org.apache.flink.connector.kafka.source.enumerator.KafkaSourceEnumerator.PartitionSplitChange, java.lang.Throwable) in coordinator thread
        Specified by:
        start in interface org.apache.flink.api.connector.source.SplitEnumerator<KafkaPartitionSplit,​KafkaSourceEnumState>