You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jun Rao (JIRA)" <ji...@apache.org> on 2015/09/03 02:04:48 UTC
[jira] [Updated] (KAFKA-1883) NullPointerException in
RequestSendThread
[ https://issues.apache.org/jira/browse/KAFKA-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao updated KAFKA-1883:
---------------------------
Fix Version/s: (was: 0.8.2.2)
> 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
> Fix For: 0.8.3
>
> 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)