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

[producer] Fix producer goroutine leak #331

Merged
merged 1 commit into from
Jul 24, 2020

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Jul 23, 2020

Motivation

Per Producer there is a goroutine leaked. The goroutine is used for the partition auto-discovery and will never exit.

Modifications

This changes the goroutine to be properly exiting after a Close() on the producer.

Verifying this change

pprof output no longer shows running goroutines from the producer.

Worth considering: Testing for goroutine leaks using https://github.com/uber-go/goleak

Per Producer there is a goroutine leaked. The goroutine is used for the
partition auto-discovery and will never exit.

This changes the goroutine to be properly exiting after a Close() on the
producer.
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

Successfully merging this pull request may close these issues.

2 participants