Prevent panic when marking the offset in kafka_consumer (#5118)

This commit is contained in:
Greg 2018-12-10 16:55:58 -07:00 committed by Daniel Nelson
parent adce43f546
commit d0a6051fd7
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ func (k *Kafka) onDelivery(track telegraf.DeliveryInfo) {
msg, ok := k.messages[track.ID()]
if !ok {
log.Printf("E! [inputs.kafka_consumer] Could not mark message delivered: %d", track.ID())
return
}
if track.Delivered() {