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

Jun Rao commented on KAFKA-1383:
--------------------------------

The problem is the following. The interestOps is updated by the processor 
thread after the request is put in the request queue. There is no guarantee 
that after a request is dequeued, the read bit in interestOps is turned off. So 
need to wait a bit.

> transient unit test failure in SocketServerTest
> -----------------------------------------------
>
>                 Key: KAFKA-1383
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1383
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.8.2
>            Reporter: Jun Rao
>
> Saw the following transient unit test failure.
> kafka.network.SocketServerTest > testNullResponse FAILED
>     java.lang.AssertionError: null
>         at org.junit.Assert.fail(Assert.java:69)
>         at org.junit.Assert.assertTrue(Assert.java:32)
>         at org.junit.Assert.assertFalse(Assert.java:51)
>         at org.junit.Assert.assertFalse(Assert.java:60)
>         at 
> kafka.network.SocketServerTest.testNullResponse(SocketServerTest.scala:117)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to