Ben Stopford created KAFKA-2564:
-----------------------------------

             Summary: SSL: Received fatal alert: handshake_failure occurs 
sporadically 
                 Key: KAFKA-2564
                 URL: https://issues.apache.org/jira/browse/KAFKA-2564
             Project: Kafka
          Issue Type: Bug
          Components: security
            Reporter: Ben Stopford
             Fix For: 0.9.0.0


We sporadically get this error when SSL is enabled. It might be better if we 
retried this rather than failing immediately on the error. 

[2015-09-21 17:22:09,446] WARN Error in I/O with connection to 
ip-172-31-34-157.eu-west-1.compute.internal/172.31.34.157 
(org.apache.kafka.common.network.Selector)
javax.net.ssl.SSLException: Received fatal alert: handshake_failure
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1639)
        at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1607)
        at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1776)
        at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1068)
        at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:890)
        at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:764)
        at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
        at 
org.apache.kafka.common.network.SSLTransportLayer.handshakeUnwrap(SSLTransportLayer.java:377)
        at 
org.apache.kafka.common.network.SSLTransportLayer.handshake(SSLTransportLayer.java:247)
        at 
org.apache.kafka.common.network.KafkaChannel.prepare(KafkaChannel.java:69)
        at org.apache.kafka.common.network.Selector.poll(Selector.java:293)
        at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:250)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.clientPoll(ConsumerNetworkClient.java:274)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:182)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:172)
        at 
org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.awaitMetadataUpdate(ConsumerNetworkClient.java:125)
        at 
org.apache.kafka.clients.consumer.internals.Coordinator.ensureCoordinatorKnown(Coordinator.java:214)
        at 
org.apache.kafka.clients.consumer.KafkaConsumer.pollOnce(KafkaConsumer.java:804)
        at 
org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:776)
        at 
kafka.tools.ConsumerPerformance$.consume(ConsumerPerformance.scala:122)
        at kafka.tools.ConsumerPerformance$.main(ConsumerPerformance.scala:66)
        at kafka.tools.ConsumerPerformance.main(ConsumerPerformance.scala)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to