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 leak in collapsing search results #110927

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

original-brownbear
Copy link
Member

Fixing this case for now by enforcing unpooled to plug the leak, this needs a little more work to function well pooled.

Fixing this case for now by enforcing unpooled to plug the leak, this
needs a little more work to function well pooled.
@original-brownbear original-brownbear added >bug :Search/Search Search-related issues that do not fall into other categories v8.16.0 v8.15.1 labels Jul 16, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Jul 16, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @original-brownbear, I've created a changelog YAML for you.

Comment on lines +103 to +106
if (hit.isPooled() == false) {
// TODO: make this work pooled by forcing the hit itself to become pooled as needed here
innerHits = innerHits.asUnpooled();
}
Copy link
Member

Choose a reason for hiding this comment

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

ARG!!!! This indeed is frustrating. But, I agree, we should do the dumb thing first to fix 8.15.x and do something nicer & more performant later.

@original-brownbear
Copy link
Member Author

Thanks Ben!

@original-brownbear original-brownbear merged commit 918acec into elastic:main Jul 16, 2024
15 checks passed
@original-brownbear original-brownbear deleted the finally-fix-leak branch July 16, 2024 16:31
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Jul 16, 2024
Fixing this case for now by enforcing unpooled to plug the leak, this
needs a little more work to function well pooled.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.15

elasticsearchmachine pushed a commit that referenced this pull request Jul 16, 2024
Fixing this case for now by enforcing unpooled to plug the leak, this
needs a little more work to function well pooled.
lkts pushed a commit to lkts/elasticsearch that referenced this pull request Jul 16, 2024
Fixing this case for now by enforcing unpooled to plug the leak, this
needs a little more work to function well pooled.
salvatore-campagna pushed a commit to salvatore-campagna/elasticsearch that referenced this pull request Jul 17, 2024
Fixing this case for now by enforcing unpooled to plug the leak, this
needs a little more work to function well pooled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.15.1 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants