[ https://issues.apache.org/jira/browse/KAFKA-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14337652#comment-14337652 ]
Gwen Shapira commented on KAFKA-1400: ------------------------------------- On second thought, why do we even try to detect from the client whether the server closed the connection? We have the server right there... we can just: Assert(server.acceptor.socket.isClosed) Any reason not to do this? > 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: Neha Narkhede > Fix For: 0.8.2.0 > > 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.3.4#6332)