[7.x] Add prefer_v2_templates flag and index setting (#55411)#55476
Merged
dakrone merged 1 commit intoelastic:7.xfrom Apr 20, 2020
Merged
[7.x] Add prefer_v2_templates flag and index setting (#55411)#55476dakrone merged 1 commit intoelastic:7.xfrom
dakrone merged 1 commit intoelastic:7.xfrom
Conversation
This commit adds a new querystring parameter on the following APIs: - Index - Update - Bulk - Create Index - Rollover These APIs now support a `?prefer_v2_templates=true|false` flag. This flag changes the preference creation to use either V2 index templates or V1 templates. This flag defaults to `false` and will be changed to `true` for 8.0+ in subsequent work. Additionally, setting this flag internally sets the `index.prefer_v2_templates` index-level setting. This setting is used so that actions that automatically create a new index (things like rollover initiated by ILM) will inherit the preference from the original index. This setting is dynamic so that a transition from v1 to v2 templates can occur for long-running indices grouped by an alias performing periodic rollover. This also adds support for sending this parameter to the High Level Rest Client. Relates to elastic#53101
Collaborator
|
Pinging @elastic/es-core-features (:Core/Features/Indices APIs) |
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this pull request
Apr 20, 2020
This adjusts the minimum version for serialization for elastic#55411. It should only be merged after elastic#55476 has been merged
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this pull request
Apr 20, 2020
This disableds BWC for the backport of elastic#55411 Backport: elastic#55476 Version adjustment: elastic#55478
dakrone
added a commit
that referenced
this pull request
Apr 20, 2020
dakrone
added a commit
that referenced
this pull request
Apr 20, 2020
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.
This commit adds a new querystring parameter on the following APIs:
These APIs now support a
?prefer_v2_templates=true|falseflag. This flag changes the preferencecreation to use either V2 index templates or V1 templates. This flag defaults to
falseand will bechanged to
truefor 8.0+ in subsequent work.Additionally, setting this flag internally sets the
index.prefer_v2_templatesindex-level setting.This setting is used so that actions that automatically create a new index (things like rollover
initiated by ILM) will inherit the preference from the original index. This setting is dynamic so
that a transition from v1 to v2 templates can occur for long-running indices grouped by an alias
performing periodic rollover.
This also adds support for sending this parameter to the High Level Rest Client.
Relates to #53101