You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "PoAn Yang (Jira)" <ji...@apache.org> on 2024/05/28 05:25:00 UTC

[jira] [Commented] (KAFKA-16843) Remove preAppendErrors from createPutCacheCallback

    [ https://issues.apache.org/jira/browse/KAFKA-16843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849880#comment-17849880 ] 

PoAn Yang commented on KAFKA-16843:
-----------------------------------

Hi [~chia7712], thanks for filing the ticket. If you're not working on this, I would like to help to remove unused parameter. Thanks.

> Remove preAppendErrors from createPutCacheCallback
> --------------------------------------------------
>
>                 Key: KAFKA-16843
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16843
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>
> origin discussion: [https://github.com/apache/kafka/pull/16072#pullrequestreview-2077368462]
> The method `createPutCacheCallback` has a input argument `preAppendErrors` [0]. It is used to keep the "error" happens before appending. However, the pre-append error is handled before by calling `responseCallback` [1]. Hence, we can remove `preAppendErrors`.
>  
> [0] https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/coordinator/group/GroupMetadataManager.scala#L387
> [1] https://github.com/apache/kafka/blob/4f55786a8a86fe228a0b10a2f28529f5128e5d6f/core/src/main/scala/kafka/coordinator/group/GroupCoordinator.scala#L927C15-L927C84



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