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

fix: do not leak file handles from Compactor.write (#25725) #25740

Open
wants to merge 1 commit into
base: main-2.x
Choose a base branch
from

Conversation

davidby-influx
Copy link
Contributor

There are a number of code paths in Compactor.write which on error can lead to leaked file handles to temporary files. This, in turn, prevents the removal of the temporary files until InfluxDB is rebooted, releasing the file handles.

closes #25724

(cherry picked from commit e974165)

closes #25739

There are a number of code paths in Compactor.write which
on error can lead to leaked file handles to temporary files.
This, in turn, prevents the removal of the temporary files until
InfluxDB is rebooted, releasing the file handles.

closes #25724

(cherry picked from commit e974165)

closes #25739
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.

prevent file handle leaks from Compactor.write on errors [port to main-2.x]
1 participant