You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Andy Skelton (JIRA)" <ji...@apache.org> on 2014/12/30 18:57:13 UTC

[jira] [Commented] (FLUME-2578) Kafka source throws NPE if Kafka record has null key

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

Andy Skelton commented on FLUME-2578:
-------------------------------------

The patch fixes the NPE for me. Thanks, [~gwenshap]!

> Kafka source throws NPE if Kafka record has null key
> ----------------------------------------------------
>
>                 Key: FLUME-2578
>                 URL: https://issues.apache.org/jira/browse/FLUME-2578
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Gwen Shapira
>            Assignee: Gwen Shapira
>         Attachments: FLUME-2578.0.patch
>
>
> When the Kafka topics contain messages with no key (such as the messages sent by default from kafka-console-producer), Kafka Source throws NPE:
> 2014-12-20 12:58:59,604 ERROR
> org.apache.flume.source.kafka.KafkaSource: KafkaSource EXCEPTION, {}
> java.lang.NullPointerException
> at java.lang.String.<init>(String.java:556)
> at org.apache.flume.source.kafka.KafkaSource.process(KafkaSource.java:105)
> at org.apache.flume.source.PollableSourceRunner$PollingRunner.run(PollableSourceRunner.java:139)
> at java.lang.Thread.run(Thread.java:745)
> )



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)