-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
[Meta] Make SearchResponse use pooled buffers for search hits #102030
Labels
Meta
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Comments
original-brownbear
added
:Search/Search
Search-related issues that do not fall into other categories
Meta
labels
Nov 10, 2023
Pinging @elastic/es-search (Team:Search) |
original-brownbear
added a commit
to original-brownbear/elasticsearch
that referenced
this issue
Nov 10, 2023
elasticsearchmachine
pushed a commit
that referenced
this issue
Nov 10, 2023
elasticsearchmachine
pushed a commit
that referenced
this issue
Nov 10, 2023
Part of the broader work covered in #102030 Updates tests in: - HighlighterWithAnalyzersTests.java - TokenCountFieldMapperIntegrationIT - GeoIpDownloaderIT.java - DataStreamIT.java
This was referenced Nov 13, 2023
Closed
elasticsearchmachine
pushed a commit
that referenced
this issue
Nov 13, 2023
… tests (#102034) Removes direct reference to SearchResponse in transforms. This was the only one I could find that was generated from a client call. All the other ones are created directly or mocks. In general Transforms does a ton of work while holding a reference to SearchResponse. We will need to make sure it correct decRefs. related to: #102030
davidkyle
pushed a commit
to davidkyle/elasticsearch
that referenced
this issue
Nov 13, 2023
davidkyle
pushed a commit
to davidkyle/elasticsearch
that referenced
this issue
Nov 13, 2023
Part of the broader work covered in elastic#102030 Updates tests in: - HighlighterWithAnalyzersTests.java - TokenCountFieldMapperIntegrationIT - GeoIpDownloaderIT.java - DataStreamIT.java
This was referenced Nov 13, 2023
Merged
This was referenced Dec 19, 2023
elasticsearchmachine
pushed a commit
that referenced
this issue
Dec 20, 2023
…Sections (#103583) This indirection isn't really necessary now that its use in the high level rest client went away. -> flattened the `SearchResponse` class to make ref counting easier -> removed `InternalSearchResponse` whose functionality was completely redundant now -> removed serialization and most of the usage of `SearchResponseSections`, only keeping this for the few search execution spots that currently use it and where removing it won't get us anything and will be a huge changeset. enables the last steps in #102030
navarone-feekery
pushed a commit
to navarone-feekery/elasticsearch
that referenced
this issue
Dec 22, 2023
…c#103532) Fixes the remaining test leaks in datastream and mustache. Mustache will require a separate PR to make the search template response classes properly ref-counted but we can prepare for that here already. for elastic#102030
navarone-feekery
pushed a commit
to navarone-feekery/elasticsearch
that referenced
this issue
Dec 22, 2023
It's in the title, fix a couple of tests here and there. Also, fix REST tests in particular and add a utility to cleanly read a SearchResponse from a REST response without leaking the parser. for elastic#102030
navarone-feekery
pushed a commit
to navarone-feekery/elasticsearch
that referenced
this issue
Dec 22, 2023
…Sections (elastic#103583) This indirection isn't really necessary now that its use in the high level rest client went away. -> flattened the `SearchResponse` class to make ref counting easier -> removed `InternalSearchResponse` whose functionality was completely redundant now -> removed serialization and most of the usage of `SearchResponseSections`, only keeping this for the few search execution spots that currently use it and where removing it won't get us anything and will be a huge changeset. enables the last steps in elastic#102030
This was referenced Dec 29, 2023
elasticsearchmachine
pushed a commit
that referenced
this issue
Jan 4, 2024
…rHelper (#103929) The logic here only works accidentally if the `source` is backed by a single `byte[]` with offset `0`. Fixed by using the `writeTo` API and just working on the bytes reference via its index handling to find the zero byte offset. Non issue since this isn't causing trouble right now but broke when I tried using this with sliced buffers for #102030
original-brownbear
added a commit
to original-brownbear/elasticsearch
that referenced
this issue
Jan 5, 2024
Some more fixes as part of elastic#102030
original-brownbear
added a commit
that referenced
this issue
Jan 5, 2024
Some more fixes as part of #102030
This was referenced Jan 5, 2024
elasticsearchmachine
pushed a commit
that referenced
this issue
Jan 5, 2024
Making this class ref-counted is rather complicated due to its mutability. As a first step towards a clean solution, move to a single primary constructor and make more fields `final`. Also this slightly speeds up and saves memory on deserialisation by not having to create the fields maps twice. part of #102030
2lambda123
pushed a commit
to 2lambda123/elastic-elasticsearch
that referenced
this issue
May 3, 2024
…rch.suggest` (#102227) relates elastic/elasticsearch#102030
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Meta
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
WIP issue but lets start collecting related PRs here already:
Test work:
org.elasticsearch.search.basic
#102074org.elasticsearch.search.ccs
#102076org.elasticsearch.search.fetch
#102087org.elasticsearch.search.fields
#102090org.elasticsearch.search.functionscore
#102095org.elasticsearch.search.morelikethis
#102098org.elasticsearch.search.nested
#102117org.elasticsearch.search.profile
#102119org.elasticsearch.search.query
#102129org.elasticsearch.search.routing
#102131org.elasticsearch.search.scriptfilter
#102132org.elasticsearch.search.sort
#102139org.elasticsearch.search.source
#102141org.elasticsearch.search.stats
#102224org.elasticsearch.index
#102534org.elasticsearch.indices
andorg.elasticsearch.indexing
#102536org.elasticsearch.recovery
andorg.elasticsearch.routing
#102539org.elasticsearch.similarity
andorg.elasticsearch.versioning
#102542MultiSearchResponse
#102694Production work:
The text was updated successfully, but these errors were encountered: