Richard Wise created KAFKA-9271:
-----------------------------------

             Summary: Client hangs until timeout when SSL handshake fails
                 Key: KAFKA-9271
                 URL: https://issues.apache.org/jira/browse/KAFKA-9271
             Project: Kafka
          Issue Type: Bug
          Components: clients
    Affects Versions: 2.0.1
            Reporter: Richard Wise


I accidentally forgot to set `security.protocol` to `SSL`, which meant that the 
Kafka client tried connecting to an SSL port via PLAINTEXT. I would expect this 
to immediate fail on the client side with an obvious message that the security 
settings do not match the server. However, instead the client continually 
retries (I can see the SSL handshake failure messages in the server logs) 
before timing out on querying metadata.

This behaviour is confusing and leads the developer to think that there is an 
issue of latency or load and that they need to increase hardware or timeouts. 
In addition, the continual retries (without any backoff) cause significant CPU 
load on both the client and server that can cause additional issues.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to