Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2358

Cluster collection returning methods should never return null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.0.0
    • 0.11.0.0
    • None
    • None

    Description

      KafkaConsumer.partitionsFor method by it's signature returns a List<PartitionInfo>. Problem is that in case (metadata for) topic does not exist, current implementation will return null, which is considered a bad practice - instead of null it should return empty list.

      Root cause is that the Cluster collection returning methods are returning null.

      Attachments

        Activity

          People

            sslavic Stevo Slavić
            sslavic Stevo Slavić
            Jason Gustafson Jason Gustafson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: