Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to unsubscribe from LogHandler/ErrorHandler #2184

Open
2 of 8 tasks
horato opened this issue Feb 5, 2024 · 1 comment
Open
2 of 8 tasks

Provide a way to unsubscribe from LogHandler/ErrorHandler #2184

horato opened this issue Feb 5, 2024 · 1 comment

Comments

@horato
Copy link

horato commented Feb 5, 2024

Description

There is currently no way to remove the referenced Actions from Producer/Consumer which might cause a memory leak.

var producer = new ProducerBuilder<string, string>(producerConfig)
		.SetLogHandler(LogHandler)
		.Build();

How to reproduce

Confluent.Kafka 2.3.0
librdkafka 2.3.0

Checklist

Please provide the following information:

  • A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
  • Confluent.Kafka nuget version.
  • Apache Kafka version.
  • Client configuration.
  • Operating system.
  • Provide logs (with "debug" : "..." as necessary in configuration).
  • Provide broker log excerpts.
  • Critical issue.
@quixoticaxis
Copy link

What is the scenario for memory leaking? When you're done with the producer, the handlers would go with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants