[ https://issues.apache.org/jira/browse/KAFKA-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14283366#comment-14283366 ]
jaikiran pai commented on KAFKA-1883: ------------------------------------- Created reviewboard https://reviews.apache.org/r/30062/diff/ against branch origin/trunk > NullPointerException in RequestSendThread > ----------------------------------------- > > Key: KAFKA-1883 > URL: https://issues.apache.org/jira/browse/KAFKA-1883 > Project: Kafka > Issue Type: Bug > Components: core > Reporter: jaikiran pai > Assignee: jaikiran pai > Attachments: KAFKA-1883.patch > > > I often see the following exception while running some tests > (ProducerFailureHandlingTest.testNoResponse is one such instance): > {code} > [2015-01-19 22:30:24,257] ERROR [Controller-0-to-broker-1-send-thread], > Controller 0 fails to send a request to broker > id:1,host:localhost,port:56729 (kafka.controller.RequestSendThread:103) > java.lang.NullPointerException > at kafka.controller.RequestSendThread.doWork(ControllerChannelManager. > scala:150) > at kafka.utils.ShutdownableThread.run(ShutdownableThread.scala:60) > {code} > Looking at that code in question, I can see that the NPE can be triggered > when the "receive" is null which can happen if the "isRunning" is false > (i.e a shutdown has been requested). -- This message was sent by Atlassian JIRA (v6.3.4#6332)