-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Address mapping and compute engine runtime field issues #117792
Merged
Merged
Changes from 11 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
619c441
Avoid reusing source providers for script based block loaders.
martijnvg ea8d11c
spotless
martijnvg 19fd9af
reword
martijnvg ad224b6
Merge remote-tracking branch 'es/main' into fix_117644
martijnvg 754c62c
add integration test and ensure that runtime fields get added to _ign…
martijnvg 2bee4d8
improve test so that it fails without the fix
martijnvg 050d4b2
spotless
martijnvg a47dfc6
A more contained approach that resolve the issue at the block loader …
martijnvg ca0e1a5
iter
martijnvg e378530
iter2
martijnvg c09207b
need source
martijnvg fdee715
introduce StoredFieldsSpec.SCRIPT_NO_REQUIREMENTS to avoid both compu…
martijnvg 7be360c
keep one bock loader impl and fixed long script unit test
martijnvg 848523b
Merge remote-tracking branch 'es/main' into fix_117644
martijnvg 7529bdf
spotless
martijnvg ec88323
adapt test
martijnvg 2aecb15
add new constructor to reduce changes in unrelated areas of the code …
martijnvg 4344fdb
Merge remote-tracking branch 'es/main' into fix_117644
martijnvg f189cc1
Revert block loader based solution for the solution that creates a ne…
martijnvg 130a96e
Merge remote-tracking branch 'es/main' into fix_117644
martijnvg 611b50e
add potential fix for when compute engine executes in parallel with d…
martijnvg 21dc0a2
spotless
martijnvg 0d515bd
apply ReinitializingSourceProvider only for esql
martijnvg dc398ae
spotless
martijnvg 1d2c878
Merge remote-tracking branch 'es/main' into fix_117644
martijnvg 9148140
move ReinitializingSourceProvider
martijnvg a083d37
Update docs/changelog/117792.yaml
martijnvg 7202757
remove duplicate copyright header
martijnvg 809a27b
A less expensive approach to solve the concurrency issue
martijnvg bae95e4
update changelog entry
martijnvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,12 @@ public DocValueFormat docValueFormat(String format, ZoneId timeZone) { | |
|
||
@Override | ||
public BlockLoader blockLoader(BlockLoaderContext blContext) { | ||
return new LongScriptBlockDocValuesReader.LongScriptBlockLoader(leafFactory(blContext.lookup())); | ||
boolean isSyntheticSource = SourceFieldMapper.isSynthetic(blContext.indexSettings()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we have two different implementations based on source mode? |
||
if (isSyntheticSource) { | ||
return new LongScriptBlockDocValuesReader.RowStrideLongScriptBlockLoader(leafFactory(blContext.lookup())); | ||
} else { | ||
return new LongScriptBlockDocValuesReader.LongScriptBlockLoader(leafFactory(blContext.lookup())); | ||
} | ||
} | ||
|
||
@Override | ||
|
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed because otherwise the follow error occurs:
However it isn't really required. Since the SearchLook / SourceLoader will load stored fields and not compute engine.