-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try to fix memory leak in Kafka sink
Signed-off-by: Alex Collins <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@sarabala1979 @whynowy one downside of Confluent Kafka Go is that it uses GCO and can have memory leaks. I believe this line could have been the memory leak as the
message
was scoped to the function, but passed through the CGO interface and not garbage collected. I might be wrong mind you.