Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.7.0
-
None
-
None
Description
I actually found this in version 1.6.0 but i've checked the code for 1.7.0 and is still present
When using an avro sink connecting to a SSL avro endpoint - if the SSL handshake requests an SNI challenge the connection fails. This is down to the line org.apache.flume.api.NettyAvroRpcClient:753:
SSLEngine sslEngine = sslContext.createSSLEngine();
In order for an SNI challenge to succeed - the hostname and port must be passed in
SSLEngine sslEngine = sslContext.createSSLEngine(hostname,port);
I've done a quick hack at this - and the values address.getHostname() and address.getPort() passed through within the connect(...) method when creating SSLCompressionChannelFactory fixes the problem