-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Add setting to ignore dynamic fields when field limit is reached #96235
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
Merged
elasticsearchmachine
merged 98 commits into
elastic:main
from
felixbarny:ignore-dynamic-beyond-limit
Feb 2, 2024
Merged
Changes from all commits
Commits
Show all changes
98 commits
Select commit
Hold shift + click to select a range
83b507c
Add new dynamic until_limit option
felixbarny 2993820
Add setting
felixbarny 6402346
Update docs/changelog/96235.yaml
felixbarny 0407747
Fix test
felixbarny 677f749
Prevent infinite retry loops and simplify code by retrying all mappin…
felixbarny 0634d26
Avoid catching exception
felixbarny 9d3b685
Fix constant_keyword mapping
felixbarny ec511c7
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 7408c5d
Add mappingUpdateRetryCounter
felixbarny 05dee62
Add comment to _ignored field's exists query implementation
felixbarny 2d2c9c2
Refactor index setting into `dynamic: until_limit` mapping parameter
felixbarny c9ad4f3
Fix testExecuteBulkIndexRequestWithErrorWhileUpdatingMapping
felixbarny 72a02ed
Remove references to ignore_dynamic_beyond_limit in docs
felixbarny 180bec1
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny d446da9
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 0f8029d
Accept mappers with the same name
felixbarny 51280ae
Apply spotless suggestions
felixbarny 99ce1a9
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 9528a12
Avoid double counting dynamic mappers for dynamic array values
felixbarny 9ab71ad
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 055f849
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny db224bd
Apply feedback from review
felixbarny 92a1f1a
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny a0e5a01
Test and fix bug in Mapper#mapperSize
felixbarny def096d
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 2ea9418
Address nits
felixbarny b7ab897
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny df8af69
Make mappingUpdateRetryCounter a boolean
felixbarny 6d06795
Only retry failed mapping updates when mappings have been updated con…
felixbarny 94996cc
Apply spotless suggestions
felixbarny 7880073
Compare total fields count rather than mapping version to check for c…
felixbarny a967603
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny f146cdf
Move mapperSize implementation from Mapper to Mapper.Builder
felixbarny b8a7a49
Apply spotless suggestions
felixbarny ca1c5b7
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny e1ff5a0
Revert TransportShardBulkActionTests changes
felixbarny 4bae69a
More tests for Mapper.Builder#mapperSize
felixbarny d98ec65
Suppress unchecked warning
felixbarny 6824f73
Fix LegacyGeoShapeFieldMapperTests via assertWarnings
felixbarny df1483c
Retry mapping updates if mapping was updated concurrently
felixbarny b0b957e
Apply spotless suggestions
felixbarny 6d133d1
Guard against NPE
felixbarny 5ca08fb
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 7ddc5ae
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny da99d7a
Revert changes to retry mapping update
felixbarny 5f3b6dc
Limit the number of fields added during merge
felixbarny fac8dcb
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 41da12a
Fix mapperSize for some FieldMapper builders
felixbarny 1a735bd
Guard against mapping update request timeouts and infinite loops
felixbarny bd56de6
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny f1413c4
Fix test and spotless
felixbarny 0727ce6
A couple of fixes
felixbarny 75acf0c
More field mapper test fixes
felixbarny 54028bf
Remove unused import
felixbarny a0a0006
Adding diagnostics to debug build failure
felixbarny b3c8fda
Only throw if mapping version hasn't changed
felixbarny 3656003
Add test case for infinite loop prevention
felixbarny 435faf5
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 1bd80fb
Add unit test for getNewDynamicMappersSize
felixbarny 797e9ee
Revert "Refactor index setting into `dynamic: until_limit` mapping pa…
felixbarny 4865ac0
Remove remains of true_until_limit
felixbarny 470d192
Simplify MapperMergeContext by using ignore_dynamic_beyond_limit inde…
felixbarny 7286290
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 42a6f7e
Apply spotless suggestions
felixbarny 379ff2b
Fix bug in addDynamicRuntimeField
felixbarny be47036
Revert adding unnecessary new line
felixbarny 58426e5
Determine remaining fields to add in MapperService
felixbarny bd99efa
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 6948a08
Polishing
felixbarny a71fbf3
Don't preserve order in mappers
felixbarny 4ad0bca
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 1f44c30
Fix performance regression
felixbarny 94f25f5
Apply spotless suggestions
felixbarny c56d18b
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 0c53952
Fix SemanticTextFieldMapperTests
felixbarny cd0cc41
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 80d0c66
Remove Mapper.Builder#mapperSize
felixbarny 6aab0ad
Remove unused import
felixbarny 4c07538
Adapt DocumentParserContextTests
felixbarny 3bcefac
Apply spotless suggestions
felixbarny baf3ab6
Fix RootObjectMapper#mapperSize
felixbarny ef45686
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny e9d3652
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny d38de54
Remove unused method
felixbarny cdd0ce6
Fix SearchResponse leak in DynamicMappingIT
felixbarny 90390ee
Merge branch 'main' into ignore-dynamic-beyond-limit
elasticmachine f589bac
Merge branch 'main' into ignore-dynamic-beyond-limit
elasticmachine 49191bf
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny eade390
Add docs for `index.mapping.total_fields.ignore_dynamic_beyond_limit`
felixbarny 488befa
Align exceedsLimit with remainingFieldsUntilLimit
felixbarny 58f900f
Make setters in IndexSettings private
felixbarny 9efde90
Replace AtomicInteger with a private DynamicMapperSize class
felixbarny 5b462d4
Make MapperService#mergeMappings static again
felixbarny f27c88c
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny da16f8d
Merge remote-tracking branch 'origin/main' into ignore-dynamic-beyond…
felixbarny 381a5d0
Merge branch 'main' into ignore-dynamic-beyond-limit
elasticmachine 43d7412
Merge branch 'main' into ignore-dynamic-beyond-limit
elasticmachine 059132d
Merge branch 'main' into ignore-dynamic-beyond-limit
elasticmachine 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 96235 | ||
| summary: Add `index.mapping.total_fields.ignore_dynamic_beyond_limit` setting to ignore dynamic fields when field limit is reached | ||
| area: Mapping | ||
| type: enhancement | ||
| issues: [] |
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
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
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
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
246 changes: 227 additions & 19 deletions
246
server/src/internalClusterTest/java/org/elasticsearch/index/mapper/DynamicMappingIT.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
Oops, something went wrong.
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.