forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore inter-segment search concurrency with synthetic source is ena…
…bled (elastic#103690) We recently (see elastic#102748) disabled concurrency whenever synthetic source is enabled in the mappings. That is because the current design of synthetic field loaders relies on sequential access to segments. The synthetic loader is global, and holds information that is local to the leaf, which gets overridden back and forth whenever inter-segment concurrency is enabled. This causes non deterministic behaviour when a script or runtime field accesses synthetic source. This commit applies a quick fix, which is to create a copy of the synthetic field loader for each segment, so that each segment can do its independent loading without overriding each other. Long term, we'll want to redesign these abstractions to not mix up global concepts with leaf concepts.
- Loading branch information
Showing
4 changed files
with
31 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 103690 | ||
summary: Restore inter-segment search concurrency with synthetic source is enabled | ||
area: Search | ||
type: bug | ||
issues: [] |
This file contains 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
This file contains 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
This file contains 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