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 potential file leak in ES816BinaryQuantizedVectorsWriter #120014

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Jan 11, 2025

We are creating tmp files that might not get closed if an exception happens just after it. This PR makes sure all errors are handle properly and files are getting closed and deleted.

fixes #119981

@iverase iverase requested a review from benwtrent January 11, 2025 10:31
@iverase iverase changed the title Fix potential file leak on ES816BinaryQuantizedVectorsWriter Fix potential file leak in ES816BinaryQuantizedVectorsWriter Jan 11, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jan 11, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine
Copy link
Collaborator

Hi @iverase, I've created a changelog YAML for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.16.4 v8.17.2 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] ES816HnswBinaryQuantizedVectorsFormatTests testRandomExceptions failing
2 participants