Chia-Ping Tsai created KAFKA-17022:
--------------------------------------

             Summary: Fix error-prone in KafkaApis#handleFetchRequest 
                 Key: KAFKA-17022
                 URL: https://issues.apache.org/jira/browse/KAFKA-17022
             Project: Kafka
          Issue Type: Improvement
            Reporter: Chia-Ping Tsai


 `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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to