Fix could not mark message delivered error in kafka_consumer (#6363)
This commit is contained in:
parent
be7c71a39b
commit
76e7b57fcd
|
@ -360,8 +360,8 @@ func (h *ConsumerGroupHandler) Handle(session sarama.ConsumerGroupSession, msg *
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
id := h.acc.AddTrackingMetricGroup(metrics)
|
|
||||||
h.mu.Lock()
|
h.mu.Lock()
|
||||||
|
id := h.acc.AddTrackingMetricGroup(metrics)
|
||||||
h.undelivered[id] = Message{session: session, message: msg}
|
h.undelivered[id] = Message{session: session, message: msg}
|
||||||
h.mu.Unlock()
|
h.mu.Unlock()
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue