Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6288

FlinkKafkaProducer's custom Partitioner is always invoked with number of partitions of default topic

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0, 1.4.0
    • Connectors / Kafka
    • None

    Description

      The FlinkKafkaProducerBase supports routing records to topics besides the default topic, but the custom Partitioner interface does not follow this semantic.

      The partitioner is always invoked the partition method with the number of partitions in the default topic, and not the number of partitions of the current targetTopic.

      Attachments

        Activity

          People

            zjureel Fang Yong
            tzulitai Tzu-Li (Gordon) Tai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: