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

Fix error-prone in KafkaApis#handleFetchRequest

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.9.0
    • None
    • None

    Description

       `createResponse`[0] references a variable out of scope, and so that is error-prone since it could be not initialized when executing. We should do a bit refactor to add `unconvertedFetchResponse` to `createResponse.

      [0] https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/KafkaApis.scala#L939

      Attachments

        Issue Links

          Activity

            People

              frankvicky TengYao Chi
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: