[ 
https://issues.apache.org/jira/browse/KAFKA-18189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kirk True updated KAFKA-18189:
------------------------------
    Description: 
The {{C{{{}oordinatorRequestManager.markCoordinatorUnknown(){}}}}} method logs 
a warning for the user when the client is not able to connect with the 
coordinator for more than a minute:
{quote}Consumer has been disconnected from the group coordinator for Xms
{quote}
 
However, if the consumer logic invokes {{markCoordinatorUnknown()}} before a 
connection was ever established, the incorrect logic leads to the misleading 
output of logs such as:
 
{quote}Consumer has been disconnected from the group coordinator for 
1733769862524ms
{quote}
 
 

  was:
The {{CoordinatorRequestManager}} outputs some logging when the client is not 
able to connect with the coordinator for an extended period of time:
{quote}Consumer has been disconnected from the group coordinator for Xms
{quote}
 
However, if the coordinator is marked as _unknown_ before it was ever 
{_}known{_}, the calculation used to determine that is incorrect which 
sometimes leads to logs like:
 
{quote}Consumer has been disconnected from the group coordinator for 
1733769862524ms
{quote}
 
 


> CoordinatorRequestManager log message can include incorrect coordinator 
> disconnect time
> ---------------------------------------------------------------------------------------
>
>                 Key: KAFKA-18189
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18189
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, consumer
>    Affects Versions: 3.9.0
>            Reporter: Kirk True
>            Assignee: Kirk True
>            Priority: Minor
>              Labels: consumer-threading-refactor
>             Fix For: 4.0.0
>
>
> The {{C{{{}oordinatorRequestManager.markCoordinatorUnknown(){}}}}} method 
> logs a warning for the user when the client is not able to connect with the 
> coordinator for more than a minute:
> {quote}Consumer has been disconnected from the group coordinator for Xms
> {quote}
>  
> However, if the consumer logic invokes {{markCoordinatorUnknown()}} before a 
> connection was ever established, the incorrect logic leads to the misleading 
> output of logs such as:
>  
> {quote}Consumer has been disconnected from the group coordinator for 
> 1733769862524ms
> {quote}
>  
>  



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

Reply via email to