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

Sanskar Jhajharia edited comment on KAFKA-18755 at 2/10/25 5:33 AM:
--------------------------------------------------------------------

Similar to the {{-list}} option for the {{{}kafka-share-groups.sh{}}}, the 
default value for the {{timeoutMsOpt}} may also cause timeouts in the 
{{-describe}} option. I see that with 
[this|https://github.com/apache/kafka/commit/0344f8f5ae4314d0723e69921c7b54715964fae9]
 commit, we are passing the [timeout 
value|https://github.com/apache/kafka/blob/trunk/tools/src/main/java/org/apache/kafka/tools/consumer/group/ShareGroupCommand.java#L209-L220]
 to the {{AdminClient.describeShareGroups()}} method as well. Thus a lower 
default value can cause timeouts. 
I agree that we realign the default timeout to use {{30000ms}} like we have for 
the {{kafka-groups.sh}} to prevent timeouts based on the infra.


was (Author: JIRAUSER303707):
Similar to the {{--list}} option for the {{{}kafka-share-groups.sh{}}}, the 
default value for the {{timeoutMsOpt}} may also cause timeouts in the 
{{--describe}} option. I see that with 
[this|https://github.com/apache/kafka/commit/0344f8f5ae4314d0723e69921c7b54715964fae9]
 commit, we are passing the [timeout 
value|https://github.com/apache/kafka/blob/trunk/tools/src/main/java/org/apache/kafka/tools/consumer/group/ShareGroupCommand.java#L209-L220]
 to the {{AdminClient.describeShareGroups()}} method as well. Thus a lower 
default value can cause timeouts. 
I agree that we realign the default timeout to use {{30000ms}} like we have for 
the {{kafka-groups.sh}} to prevent timeouts based on the infra.

> Align timeout in kafka-share-groups.sh with other group-related tools
> ---------------------------------------------------------------------
>
>                 Key: KAFKA-18755
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18755
>             Project: Kafka
>          Issue Type: Sub-task
>          Components: tools
>    Affects Versions: 4.1.0
>            Reporter: Andrew Schofield
>            Assignee: Andrew Schofield
>            Priority: Major
>             Fix For: 4.1.0
>
>
> kafka-share-groups.sh uses a timeout of 5000ms for listing groups. 
> kafka-groups.sh uses 30000ms. As a result, we have seen situations in testing 
> where kafka-share-groups.sh times out, when kafka-groups.sh does not. There 
> is no good reason for the difference so we should align them.



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

Reply via email to