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

Introduce a noop, never-released ref counted constant #103931

Conversation

original-brownbear
Copy link
Member

This is needed for the search response pooling work. Also, the one usage in ReleasableBytesReference actually makes outright sense. We shouldn't be ref-counting on a global constant, that just needlessly introduces contention that isn't entirely obvious. This change required a couple tests to be adjusted where we were checking release mechanics on noop instances.

This is needed for the search response pooling work. Also,
the one usage in `ReleasableBytesReference` actually makes outright
sense. We shouldn't be ref-counting on a global constant, that just
needlessly introduces contention that isn't entirely obvious.
This change required a couple tests to be adjusted where we were
checking release mechanics on noop instances.
@original-brownbear original-brownbear added >non-issue :Distributed/Network Http and internode communication implementations labels Jan 4, 2024
@elasticsearchmachine elasticsearchmachine added Team:Distributed Meta label for distributed team v8.13.0 labels Jan 4, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

Yep LGTM assuming CI is happy. IIRC () -> {} is a global constant anyway.

Co-authored-by: David Turner <david.turner@elastic.co>
@original-brownbear
Copy link
Member Author

Thanks David!

@original-brownbear original-brownbear added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 4, 2024
@elasticsearchmachine elasticsearchmachine merged commit 78c365f into elastic:main Jan 4, 2024
15 checks passed
@original-brownbear original-brownbear deleted the introduce-always-referenced-ref-counted branch January 4, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed/Network Http and internode communication implementations >non-issue Team:Distributed Meta label for distributed team v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants