[
https://issues.apache.org/jira/browse/KAFKA-17022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai reassigned KAFKA-17022:
--------------------------------------
Assignee: Chia-Ping Tsai
> 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
> Assignee: Chia-Ping Tsai
> Priority: Minor
>
> `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)