You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Marcin Kuthan (Jira)" <ji...@apache.org> on 2023/12/28 10:10:00 UTC

[jira] [Created] (KAFKA-16057) Admin Client connections.max.idle.ms should be 9 minutes by default

Marcin Kuthan created KAFKA-16057:
-------------------------------------

             Summary: Admin Client connections.max.idle.ms should be 9 minutes by default
                 Key: KAFKA-16057
                 URL: https://issues.apache.org/jira/browse/KAFKA-16057
             Project: Kafka
          Issue Type: Bug
            Reporter: Marcin Kuthan


Producer and consumer define connections.max.idle.ms to 9 minutes but Admin uses 5 minutes by default.

When the connection.max.idle.ms is equal to metadata.max.age.ms (5 minutes) admin client disconnects frequently. I observe the following log in Kafka Connect cluster:
{code:java}
[AdminClient clientId=MyClientName--shared-admin] Node XYVZ disconnected. {code}
AdminClient is trying to fetch metadata on every 5 minutes but the connection has been already closed due to the connection.max.idle.ms.

As a workaround I defined connection.max.idle.ms property explicitly to 9 minutes in Kafka Connect configuration. This way admin, producers and consumers use the same configuration.

I'm wondering why Admin uses different default for connection.max.idle.ms than Consumer / Producer. Bug or feature?



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