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

Clean up workaround in FlinkKafkaConsumer09

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • Connectors / Kafka
    • None

    Description

      In the current FlinkKafkaConsumer09 implementation, we repeatedly start a new KafkaConsumer if the method KafkaConsumer.partitionsFor returns a NPE. This is due to a bug with the Kafka version 0.9.0.0. See https://issues.apache.org/jira/browse/KAFKA-2880. The code can be found in the constructor of FlinkKafkaConsumer09.java:208.

      However, the problem is marked as fixed for version 0.9.0.1, which we also use for the flink-connector-kafka. Therefore, we should be able to get rid of the workaround.

      Attachments

        Activity

          People

            Unassigned Unassigned
            trohrmann Till Rohrmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: