You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Kirk True (Jira)" <ji...@apache.org> on 2024/08/22 00:47:00 UTC

[jira] [Commented] (KAFKA-17377) Consider using defaultApiTimeoutMs in AsyncKafkaConsumer#unsubscribe

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

Kirk True commented on KAFKA-17377:
-----------------------------------

[~yangpoan]—your suggestion makes a lot of sense.

[~lianetm] [~pnee]—do you have any thoughts on this?

> Consider using defaultApiTimeoutMs in AsyncKafkaConsumer#unsubscribe
> --------------------------------------------------------------------
>
>                 Key: KAFKA-17377
>                 URL: https://issues.apache.org/jira/browse/KAFKA-17377
>             Project: Kafka
>          Issue Type: Improvement
>          Components: clients, consumer
>            Reporter: PoAn Yang
>            Assignee: PoAn Yang
>            Priority: Major
>              Labels: consumer-threading-refactor
>
> This is followup from [https://github.com/apache/kafka/pull/16673#discussion_r1717009724]
> AsyncKafkaConsumer#unsubscribe uses Long.MAX_VALUE to calculate deadline. However, most of AsyncKafkaConsumer operations use [default.api.timeout.ms|https://kafka.apache.org/documentation/#consumerconfigs_default.api.timeout.ms] if users don't specify a timeout. In [design document|https://cwiki.apache.org/confluence/display/KAFKA/Java+client+Consumer+timeouts#JavaclientConsumertimeouts-DefaultTimeouts], it also mentions that using default.api.timeout.ms as default timeout.



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