Skip to content

Fix onFlushTimeout timer not being cleared when upstream errors #1616

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

Merged
merged 3 commits into from
Feb 24, 2022
Merged

Fix onFlushTimeout timer not being cleared when upstream errors #1616

merged 3 commits into from
Feb 24, 2022

Conversation

rprovodenko
Copy link
Contributor

Hey
Found this bug when debugging a memory leak. Always close resources in finally. In this particular case I was getting a lot of errors in an upstream stream and this timer wasn't being released, meaning that GC couldn't clean the es client instance, causing a memory leak.

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@cla-checker-service
Copy link

cla-checker-service bot commented Feb 6, 2022

💚 CLA has been signed

Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, great catch! 🚀
Can you sign the CLA?

@rprovodenko
Copy link
Contributor Author

I thought I had, let me try again

@rprovodenko
Copy link
Contributor Author

It's signed :)

@rprovodenko
Copy link
Contributor Author

Anything else I need to do?

@rprovodenko rprovodenko requested a review from delvedor February 14, 2022 14:26
Copy link
Member

@delvedor delvedor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@delvedor delvedor merged commit d015828 into elastic:main Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants