You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/06/22 14:02:00 UTC

[jira] [Created] (KAFKA-17022) Fix error-prone in KafkaApis#handleFetchRequest

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)