[jira] [Commented] (KAFKA-2850) SslTransportLayerTest.testInvalidEndpointIdentification fails consistently

2016-01-06 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-2850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15086450#comment-15086450
 ] 

ASF GitHub Bot commented on KAFKA-2850:
---

Github user asfgit closed the pull request at:

https://github.com/apache/kafka/pull/546


> SslTransportLayerTest.testInvalidEndpointIdentification fails consistently
> --
>
> Key: KAFKA-2850
> URL: https://issues.apache.org/jira/browse/KAFKA-2850
> Project: Kafka
>  Issue Type: Bug
>  Components: clients, security
>Affects Versions: 0.9.0.0
>Reporter: Flavio Junqueira
>Assignee: Rajini Sivaram
> Fix For: 0.9.1.0
>
>
> This test case is failing consistently for me. From the logs, I've noticed 
> that waitForChannelClose is failing and the output is this:
> {noformat}
> [2015-11-17 15:51:50,374] WARN Failed to send SSL Close message  
> (org.apache.kafka.common.network.SslTransportLayer:164)
> java.nio.channels.ClosedChannelException
>   at 
> sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:270)
>   at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:461)
>   at 
> org.apache.kafka.common.network.SslTransportLayer.flush(SslTransportLayer.java:194)
>   at 
> org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:161)
>   at 
> org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:50)
>   at org.apache.kafka.common.network.Selector.close(Selector.java:442)
>   at org.apache.kafka.common.network.Selector.poll(Selector.java:310)
>   at 
> org.apache.kafka.common.network.SslTransportLayerTest$SslEchoServer.run(SslTransportLayerTest.java:577)
> org.apache.kafka.common.network.SslTransportLayerTest > 
> testInvalidEndpointIdentification FAILED
> java.lang.AssertionError
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at 
> org.apache.kafka.common.network.SslTransportLayerTest.waitForChannelClose(SslTransportLayerTest.java:430)
> at 
> org.apache.kafka.common.network.SslTransportLayerTest.testInvalidEndpointIdentification(SslTransportLayerTest.java:124)
> {noformat}



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


[jira] [Commented] (KAFKA-2850) SslTransportLayerTest.testInvalidEndpointIdentification fails consistently

2015-11-17 Thread Flavio Junqueira (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-2850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009790#comment-15009790
 ] 

Flavio Junqueira commented on KAFKA-2850:
-

works for me, thanks [~rsivaram].

> SslTransportLayerTest.testInvalidEndpointIdentification fails consistently
> --
>
> Key: KAFKA-2850
> URL: https://issues.apache.org/jira/browse/KAFKA-2850
> Project: Kafka
>  Issue Type: Bug
>  Components: clients, security
>Affects Versions: 0.9.0.0
>Reporter: Flavio Junqueira
>Assignee: Rajini Sivaram
>
> This test case is failing consistently for me. From the logs, I've noticed 
> that waitForChannelClose is failing and the output is this:
> {noformat}
> [2015-11-17 15:51:50,374] WARN Failed to send SSL Close message  
> (org.apache.kafka.common.network.SslTransportLayer:164)
> java.nio.channels.ClosedChannelException
>   at 
> sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:270)
>   at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:461)
>   at 
> org.apache.kafka.common.network.SslTransportLayer.flush(SslTransportLayer.java:194)
>   at 
> org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:161)
>   at 
> org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:50)
>   at org.apache.kafka.common.network.Selector.close(Selector.java:442)
>   at org.apache.kafka.common.network.Selector.poll(Selector.java:310)
>   at 
> org.apache.kafka.common.network.SslTransportLayerTest$SslEchoServer.run(SslTransportLayerTest.java:577)
> org.apache.kafka.common.network.SslTransportLayerTest > 
> testInvalidEndpointIdentification FAILED
> java.lang.AssertionError
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at 
> org.apache.kafka.common.network.SslTransportLayerTest.waitForChannelClose(SslTransportLayerTest.java:430)
> at 
> org.apache.kafka.common.network.SslTransportLayerTest.testInvalidEndpointIdentification(SslTransportLayerTest.java:124)
> {noformat}



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


[jira] [Commented] (KAFKA-2850) SslTransportLayerTest.testInvalidEndpointIdentification fails consistently

2015-11-17 Thread Rajini Sivaram (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-2850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009601#comment-15009601
 ] 

Rajini Sivaram commented on KAFKA-2850:
---

[~fpj] Do you mind testing the fix in the PR since I cannot recreate the 
failure? Thank you.

> SslTransportLayerTest.testInvalidEndpointIdentification fails consistently
> --
>
> Key: KAFKA-2850
> URL: https://issues.apache.org/jira/browse/KAFKA-2850
> Project: Kafka
>  Issue Type: Bug
>  Components: clients, security
>Affects Versions: 0.9.0.0
>Reporter: Flavio Junqueira
>Assignee: Rajini Sivaram
>
> This test case is failing consistently for me. From the logs, I've noticed 
> that waitForChannelClose is failing and the output is this:
> {noformat}
> [2015-11-17 15:51:50,374] WARN Failed to send SSL Close message  
> (org.apache.kafka.common.network.SslTransportLayer:164)
> java.nio.channels.ClosedChannelException
>   at 
> sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:270)
>   at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:461)
>   at 
> org.apache.kafka.common.network.SslTransportLayer.flush(SslTransportLayer.java:194)
>   at 
> org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:161)
>   at 
> org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:50)
>   at org.apache.kafka.common.network.Selector.close(Selector.java:442)
>   at org.apache.kafka.common.network.Selector.poll(Selector.java:310)
>   at 
> org.apache.kafka.common.network.SslTransportLayerTest$SslEchoServer.run(SslTransportLayerTest.java:577)
> org.apache.kafka.common.network.SslTransportLayerTest > 
> testInvalidEndpointIdentification FAILED
> java.lang.AssertionError
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at 
> org.apache.kafka.common.network.SslTransportLayerTest.waitForChannelClose(SslTransportLayerTest.java:430)
> at 
> org.apache.kafka.common.network.SslTransportLayerTest.testInvalidEndpointIdentification(SslTransportLayerTest.java:124)
> {noformat}



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


[jira] [Commented] (KAFKA-2850) SslTransportLayerTest.testInvalidEndpointIdentification fails consistently

2015-11-17 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-2850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15009595#comment-15009595
 ] 

ASF GitHub Bot commented on KAFKA-2850:
---

GitHub user rajinisivaram opened a pull request:

https://github.com/apache/kafka/pull/546

KAFKA-2850: Fix SSL invalid endpoint validation test

Use invalid hostname to ensure that test works in all environments

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/rajinisivaram/kafka KAFKA-2850

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/kafka/pull/546.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #546


commit 51d649fb6196c7efb67d2870c18f2a5a54ad7153
Author: Rajini Sivaram 
Date:   2015-11-17T21:27:24Z

KAFKA-2850: Use invalid hostname in SSL endpoint validation test to ensure 
it works in all environments




> SslTransportLayerTest.testInvalidEndpointIdentification fails consistently
> --
>
> Key: KAFKA-2850
> URL: https://issues.apache.org/jira/browse/KAFKA-2850
> Project: Kafka
>  Issue Type: Bug
>  Components: clients, security
>Affects Versions: 0.9.0.0
>Reporter: Flavio Junqueira
>Assignee: Rajini Sivaram
>
> This test case is failing consistently for me. From the logs, I've noticed 
> that waitForChannelClose is failing and the output is this:
> {noformat}
> [2015-11-17 15:51:50,374] WARN Failed to send SSL Close message  
> (org.apache.kafka.common.network.SslTransportLayer:164)
> java.nio.channels.ClosedChannelException
>   at 
> sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:270)
>   at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:461)
>   at 
> org.apache.kafka.common.network.SslTransportLayer.flush(SslTransportLayer.java:194)
>   at 
> org.apache.kafka.common.network.SslTransportLayer.close(SslTransportLayer.java:161)
>   at 
> org.apache.kafka.common.network.KafkaChannel.close(KafkaChannel.java:50)
>   at org.apache.kafka.common.network.Selector.close(Selector.java:442)
>   at org.apache.kafka.common.network.Selector.poll(Selector.java:310)
>   at 
> org.apache.kafka.common.network.SslTransportLayerTest$SslEchoServer.run(SslTransportLayerTest.java:577)
> org.apache.kafka.common.network.SslTransportLayerTest > 
> testInvalidEndpointIdentification FAILED
> java.lang.AssertionError
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at 
> org.apache.kafka.common.network.SslTransportLayerTest.waitForChannelClose(SslTransportLayerTest.java:430)
> at 
> org.apache.kafka.common.network.SslTransportLayerTest.testInvalidEndpointIdentification(SslTransportLayerTest.java:124)
> {noformat}



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