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

Upgrading from v7.0.29 to v7.0.32 introduced a go routine leak #1681

Closed
emilhjd opened this issue Jul 26, 2022 · 6 comments · Fixed by #1687
Closed

Upgrading from v7.0.29 to v7.0.32 introduced a go routine leak #1681

emilhjd opened this issue Jul 26, 2022 · 6 comments · Fixed by #1687
Labels

Comments

@emilhjd
Copy link

emilhjd commented Jul 26, 2022

Did the upgrade, noticed the leak, reverted back to v7.0.29 and the go routine leak was gone.

Will try and identify the leak more precisely, but maybe it is quite clear to someone what happened given that is was recently introduced.

@harshavardhana
Copy link
Member

This is not enough, you have to tell us exactly what you did and profile your application share the profiles here.

@harshavardhana
Copy link
Member

Closing @emilhjd please let us know once you have the profiles.

@alexanderpalsson
Copy link

@harshavardhana we are having a lot of trouble with go routines getting stuck in the for loop. Seems like the reqChannel never closes after this change 42c18ba#diff-282c3c5bf47067eafde30e0ed6f8df086049b4b48891586a3e611b01036f600bL78-L85. Since the channel closing with a defer it's never closed since there is nothing triggering the return after the ctx.Done was removed.

Maybe we are doing something wrong here, but just using the close method doesn't seem to close the channel.

@harshavardhana
Copy link
Member

@alexanderpalsson will check

@harshavardhana
Copy link
Member

@alexanderpalsson can you take a look at the PR #1687 and test it?

@alexanderpalsson
Copy link

@harshavardhana looks good thank you 😃

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

Successfully merging a pull request may close this issue.

3 participants