Fix an OOM error when creating to many chained synonym graph token filter.#140026
Merged
afoucret merged 3 commits intoelastic:patch/serverless-fixfrom Dec 30, 2025
Merged
Conversation
2a4b17f to
b36152d
Compare
cd3ee68 to
32d60e5
Compare
markjhoy
reviewed
Dec 29, 2025
| ts.reset(); | ||
| assertTrue("Should produce at least one token", ts.incrementToken()); | ||
| ts.close(); | ||
| } |
Contributor
There was a problem hiding this comment.
Just to help the test GC along, you may want to place:
indexAnalyzers = null;
at the end of the test. (context: playing with the test, I had it loop through the entire test 20 times, and it OOM'd for me... adding this inside the loop, it passed). Not saying an OOM will happen during a CI test run with just the one time through in the test, but it can't hurt just in case.
markjhoy
approved these changes
Dec 29, 2025
Contributor
markjhoy
left a comment
There was a problem hiding this comment.
Overall, looks good, and the logic for the overridden method makes sense.
Left one comment in the unit tests, but overall, I think this will work.
Collaborator
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Contributor
Author
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
afoucret
added a commit
to afoucret/elasticsearch
that referenced
this pull request
Dec 31, 2025
…lter. (elastic#140026) * Create YAML REST test for chained synonym filters. * Adding some unit tests for chained synonyms graph filters creation. * Ensure previous synonyms set from the chain aren't applied again. (cherry picked from commit e6bd70d)
afoucret
added a commit
that referenced
this pull request
Jan 5, 2026
szybia
added a commit
to szybia/elasticsearch
that referenced
this pull request
Jan 7, 2026
* upstream/main: Add hook for blocking termination (elastic#133555) Delegate to ES93ScalarQuantizedVectorsFormat rather than copying behaviour (elastic#139834) Refactor compound block types (elastic#140219) Flush the rate buffer when the slice index changes (elastic#138856) Log linked project connection errors at debug during shutdown (elastic#140239) Periodic FIPS 140-3 buildkite pipelines (elastic#139909) ES|QL - Remove TERM function (elastic#139953) Fix name of started time field in shutdown status (elastic#139910) Drop `project_routing` from query params (elastic#140272) Fix flaky test: AllocationDecidersTests (elastic#140271) Add List Reindex API (elastic#140184) Expose _tier metadata attribute in ESQL (elastic#139894) Tweak TSDBRestEsqlIT#testTimeSeriesQuerying(...) (elastic#140210) Fix an OOM error when creating to many chained synonym graph token filter. (elastic#140026) Suppress Azure SDK error logs (elastic#139730) Rewritten integer sorts need to use SortedNumericSortField (elastic#139538) (elastic#139700) Adjust index versions for skippers for time series (elastic#139670) Fix host.name skippers index version range (elastic#139636) Remove BWC shim for a broken commit Fix index.mapping.use_doc_values_skipper defaults in serverless (elastic#139532)
This was referenced Jan 13, 2026
Mikep86
pushed a commit
to Mikep86/elasticsearch
that referenced
this pull request
Feb 5, 2026
…lter. (elastic#140026) * Create YAML REST test for chained synonym filters. * Adding some unit tests for chained synonyms graph filters creation. * Ensure previous synonyms set from the chain aren't applied again. (cherry picked from commit e6bd70d)
Contributor
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Mikep86
pushed a commit
to Mikep86/elasticsearch
that referenced
this pull request
Feb 5, 2026
…lter. (elastic#140026) * Create YAML REST test for chained synonym filters. * Adding some unit tests for chained synonyms graph filters creation. * Ensure previous synonyms set from the chain aren't applied again. (cherry picked from commit e6bd70d)
Mikep86
pushed a commit
to Mikep86/elasticsearch
that referenced
this pull request
Feb 5, 2026
…lter. (elastic#140026) * Create YAML REST test for chained synonym filters. * Adding some unit tests for chained synonyms graph filters creation. * Ensure previous synonyms set from the chain aren't applied again. (cherry picked from commit e6bd70d)
elasticsearchmachine
pushed a commit
that referenced
this pull request
Feb 5, 2026
…lter. (#140026) (#141966) * Create YAML REST test for chained synonym filters. * Adding some unit tests for chained synonyms graph filters creation. * Ensure previous synonyms set from the chain aren't applied again. (cherry picked from commit e6bd70d) Co-authored-by: Aurélien FOUCRET <aurelien.foucret@gmail.com>
elasticsearchmachine
pushed a commit
that referenced
this pull request
Feb 5, 2026
…lter. (#140026) (#141965) * Create YAML REST test for chained synonym filters. * Adding some unit tests for chained synonyms graph filters creation. * Ensure previous synonyms set from the chain aren't applied again. (cherry picked from commit e6bd70d) Co-authored-by: Aurélien FOUCRET <aurelien.foucret@gmail.com>
elasticsearchmachine
pushed a commit
that referenced
this pull request
Feb 5, 2026
…lter. (#140026) (#141964) * Create YAML REST test for chained synonym filters. * Adding some unit tests for chained synonyms graph filters creation. * Ensure previous synonyms set from the chain aren't applied again. (cherry picked from commit e6bd70d) Co-authored-by: Aurélien FOUCRET <aurelien.foucret@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.