[ https://issues.apache.org/jira/browse/KAFKA-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339588#comment-14339588 ]
Gwen Shapira commented on KAFKA-1400: ------------------------------------- I was under the impression that this was there to validate that the SocketServer actually closes the sockets as intended. Isn't the client behavior when writing to a closed socket part of Java's NIO implementation (and the OS socket implementation, and TCP specs...) and largely outside our control? Your fix is obviously valid, so I'm not really arguing against your patch. Just trying to clarify my own understanding. > 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.0 > Reporter: Jun Rao > Assignee: Jun Rao > Fix For: 0.8.2.0 > > Attachments: KAFKA-1400.patch, 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.3.4#6332)