Skip to content

Commit

Permalink
Prevent panic when marking the offset in kafka_consumer (influxdata#5118
Browse files Browse the repository at this point in the history
)
  • Loading branch information
glinton authored and Jean-Louis Dupond committed Apr 22, 2019
1 parent a5de897 commit 7166402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/kafka_consumer/kafka_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 7166402

Please sign in to comment.