-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Remove existing indices/datastreams/aliases before simulating index template #84675
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
Remove existing indices/datastreams/aliases before simulating index template #84675
Conversation
…emplate Previously when constructing the "fake" response when simulating an index template (`/_index_template/_simulate_index/<myindexname>`) an error would be thrown if there was an index, alias, or data stream already existing with the provided index name. This commit makes it so that simulating an index that may already exist treats it as though it was a new creation of the index. Resolves elastic#84256
Pinging @elastic/es-data-management (Team:Data Management) |
Hi @dakrone, I've created a changelog YAML for you. |
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, thanks for fixing this Lee
@elasticmachine update branch |
💔 Backport failed
You can use sqren/backport to manually backport by running |
…emplate (elastic#84675) # Conflicts: # x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/data_stream/180_simulate_existing_data_stream.yml
…emplate (elastic#84675) # Conflicts: # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.simulate_index_template/10_basic.yml # x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/data_stream/180_simulate_existing_data_stream.yml
…index template (#84675) (#84769) * Remove existing indices/datastreams/aliases before simulating index template (#84675) # Conflicts: # rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.simulate_index_template/10_basic.yml # x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/data_stream/180_simulate_existing_data_stream.yml * Fix backport typo issue
Previously when constructing the "fake" response when simulating an index
template (
/_index_template/_simulate_index/<myindexname>
) an error would be thrown if there was anindex, alias, or data stream already existing with the provided index name. This commit makes it so
that simulating an index that may already exist treats it as though it was a new creation of the
index.
Resolves #84256