-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Cleanup of IndexSettingProvider #135251
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
Cleanup of IndexSettingProvider #135251
Conversation
In elastic#133232, we've added the ability to provide index metadata with an IndexSettingProvider. It turned out that we don't need that functionality as we ended up using a private index setting in elastic#132566. This also adds the `IndexVersion` as another parameter. This is in preparation for [this](elastic#132566 (comment)) suggestion to conditionally set one or another setting, depending on the index version.
Pinging @elastic/es-data-management (Team:Data Management) |
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.
LGTM, I left one comment
...treams/src/main/java/org/elasticsearch/datastreams/action/TransportGetDataStreamsAction.java
Outdated
Show resolved
Hide resolved
…x-version' into index-settings-provider-index-version
It can't provide custom metadata anymore
Otherwise, they can't rely on the provided version to be the one that will be actually used for the created index.
Pointing out a change for how the The final index version is now determined before calling any To resolve the index version, I'm now considering both the request settings and the template settings and I'm filtering out user-provided settings for failure indices (such as the index version) as it's done later in |
In #133232, we've added the ability to provide index metadata with an IndexSettingProvider. It turned out that we don't need that functionality as we ended up using a private index setting in #132566.
This also adds the
IndexVersion
as another parameter. This is in preparation for this suggestion to conditionally set one or another setting, depending on the index version.