Skip to content

Release SearchContext referenced resources via safer pattern #127485

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

Conversation

original-brownbear
Copy link
Member

The todo is probably correct but until we get to it, lets make this a little safer and easier to reason about.
No need for two fields for this, using the future pattern is also much safer and easier to reason about and automatically unlinks objects on close.

No need for two fields for this, using the future pattern is also much
safer and easier to reason about and automatically unlinks objects
on close.
@original-brownbear original-brownbear added >non-issue :Search Foundations/Search Catch all for Search Foundations labels Apr 28, 2025
@elasticsearchmachine elasticsearchmachine added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.1.0 labels Apr 28, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

Copy link
Member

@not-napoleon not-napoleon left a comment

Choose a reason for hiding this comment

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

This looks fine to me.

@original-brownbear
Copy link
Member Author

Thanks Mark!

@original-brownbear original-brownbear merged commit 1b35cce into elastic:main May 1, 2025
17 checks passed
@original-brownbear original-brownbear deleted the clean-tracking-context-releaseables branch May 1, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants