[
https://issues.apache.org/jira/browse/KAFKA-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14102471#comment-14102471
]
Gwen Shapira commented on KAFKA-1400:
-------------------------------------
No exception is thrown. Thats the problem :)
I believe that server.shutdown() returns before shutdown is complete, and the
next send() command (the one that should fail with an IOException) actually
succeeds.
I hate adding "sleep" to unit tests, but I'm not sure how else to avoid the
send() succeeding and the test failing.
> transient unit test failure in SocketServerTest
> -----------------------------------------------
>
> Key: KAFKA-1400
> URL: https://issues.apache.org/jira/browse/KAFKA-1400
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8.2
> Reporter: Jun Rao
> Assignee: Neha Narkhede
> Fix For: 0.8.2
>
> Attachments: KAFKA-1400.patch
>
>
> Saw the following transient failure.
> kafka.network.SocketServerTest > testSocketsCloseOnShutdown FAILED
> java.lang.AssertionError: Expected exception: java.net.SocketException
--
This message was sent by Atlassian JIRA
(v6.2#6252)