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

DescribeTopicsResult#allTopicIds and DescribeTopicsResult#allTopicNames should return null instead of throwing NPE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.8.0
    • None
    • None

    Description

           * @return A future map from topic names to descriptions which can be used to check
           *         the status of individual description if the describe topic request used
           *         topic names, otherwise return null, this request succeeds only if all the
           *         topic descriptions succeed
      

      According the docs, it should return null if we try to get the result unmatched to the request. For example, we call `allTopicNames` in passing `TopicIdCollection`. However, the current implementation will throw NPE directly

      Attachments

        Issue Links

          Activity

            People

              brandboat Kuan Po Tseng
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: