cloudevents / sdk-go

Go SDK for CloudEvents
https://cloudevents.github.io/sdk-go/
Apache License 2.0
773 stars 214 forks source link

Memory leak in the confluent kafka producer #1030

Closed yanmxa closed 1 month ago

yanmxa commented 2 months ago

@embano1 I just found a memory leak in the confluent kafka protocol Sender. I apologize for overlooking this issue in the initial version.

The producer should fetch the event from the producer.Events() chan. Otherwise, the events chan will eventually fill up.

Reference: https://github.com/confluentinc/confluent-kafka-go/issues/1043, https://github.com/confluentinc/confluent-kafka-go/issues/578