Laszlo Hornyak created FLUME-3064: ------------------------------------- Summary: NullPointerException when communication issue with kafka server Key: FLUME-3064 URL: https://issues.apache.org/jira/browse/FLUME-3064 Project: Flume Issue Type: Bug Components: Kafka Channel, Sinks+Sources Affects Versions: v1.7.0 Environment: logging level must be DEBUG Reporter: Laszlo Hornyak Priority: Minor
When flume has communication issues with kafka and the logging level is set to DEBUG, additionally to the log of the communication error an NPE will be thrown. This happens because kafka callback metadata parameter [can be null|https://kafka.apache.org/082/javadoc/org/apache/kafka/clients/producer/Callback.html#onCompletion(org.apache.kafka.clients.producer.RecordMetadata,%20java.lang.Exception)], this is not handled, but it is only evaluated if the log level is DEBUG. The problem affects the kafka source and the channel. -- This message was sent by Atlassian JIRA (v6.3.15#6346)