You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chern Yih Cheah (Jira)" <ji...@apache.org> on 2022/05/05 18:38:00 UTC

[jira] [Created] (KAFKA-13879) Exponential backoff for reconnect does not work

Chern Yih Cheah created KAFKA-13879:
---------------------------------------

             Summary: Exponential backoff for reconnect does not work
                 Key: KAFKA-13879
                 URL: https://issues.apache.org/jira/browse/KAFKA-13879
             Project: Kafka
          Issue Type: Bug
          Components: network
    Affects Versions: 2.7.0
            Reporter: Chern Yih Cheah


When a client connects to a SSL listener using PLAINTEXT security protocol, after the TCP connection is setup, the client considers the channel setup is complete (in reality the channel setup is not complete yet). The client issues API version request after that. When issuing API version request, reconnection exponential backoff is reset. Since the broker expects SSL handshake, client's API version request will cause the connection to disconnect. Reconnect will happen without exponential backoff since it has been reset.

[https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java#L249.]  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)