-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
API requests to endpoint "/api/v2/backup/metadata" result in file handle resource leakage #24366
Comments
The returned function of errors2.Capture needs to be called to free the file descriptor.
The returned function of errors2.Capture needs to be called to free the file descriptor.
The returned function of errors2.Capture needs to be called.
The returned function of errors2.Capture needs to be called.
In addition to the file descriptor leaking, there is disk space consumed by the OS as long as the process has it open. I looked at the code and noticed that the issue is the |
Hi, pinging on this ticket. I provided the fix and I'm hoping this can make it into the next 2.x build since I'm having trouble building myself from code--I am also hitting this issue: #24363. |
Steps to reproduce:
sudo lsof -p `pidof influxd` | grep deleted | wc -l
and note the count of deleted file handles held open by influxdcurl "http://localhost:8086/api/v2/backup/metadata" -XGET --header "Authorization: Token $TOKEN" --output response
to hit the API endpointsudo lsof -p `pidof influxd` | grep deleted | wc -l
and note count has increased by 1For example:
Expected behavior:
The influxd process should clean up resources after completing processing of the API request.
Actual behavior:
A deleted file handle is left open each time the API endpoint is hit.
Environment info:
Linux 5.4.0-148-generic x86_64
InfluxDB v2.6.1 (git: 9dcf880fe0) build_date: 2022-12-29T15:53:07Z
Config:
Default
The text was updated successfully, but these errors were encountered: