Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2578

Kafka source throws NPE if Kafka record has null key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • None

    Description

      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)
      )

      Attachments

        1. FLUME-2578.0.patch
          3 kB
          Gwen Shapira

        Activity

          People

            gwenshap Gwen Shapira
            gwenshap Gwen Shapira
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: