Skip to content
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

Don't allow invalid template combinations #56397

Merged
merged 10 commits into from
May 14, 2020

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented May 7, 2020

This commit removes the ability to put V2 index templates that reference missing component templates.
It also prevents removing component templates that are being referenced by an existing V2 index
template.

Relates to #53101
Resolves #56314

This commit removes the ability to put V2 index templates that refence missing component templates.
It also prevents removing component templates that are being referenced by an existing V2 index
template.

Relates to elastic#53101
Resolves elastic#56314
@dakrone dakrone added :Data Management/Indices APIs APIs to create and manage indices and templates v8.0.0 v7.9.0 labels May 7, 2020
@dakrone dakrone requested review from andreidan and probakowski May 7, 2020 22:14
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Indices APIs)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label May 7, 2020
@dakrone
Copy link
Member Author

dakrone commented May 8, 2020

@elasticmachine update branch

@dakrone
Copy link
Member Author

dakrone commented May 8, 2020

@elasticmachine update branch

@dakrone
Copy link
Member Author

dakrone commented May 8, 2020

Looks like CI ran out of memory:

12:21:05 java.lang.OutOfMemoryError: Java heap space
12:21:05 Dumping heap to java_pid3691.hprof ...
12:21:08 Heap dump file created [169278035 bytes in 2.711 secs]

@elasticmachine run elasticsearch-ci/1

@dakrone
Copy link
Member Author

dakrone commented May 11, 2020

@elasticmachine update branch

@dakrone
Copy link
Member Author

dakrone commented May 13, 2020

@elasticmachine update branch

Copy link
Contributor

@andreidan andreidan left a 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

Left a super minor nit, feel free to ignore

@dakrone dakrone merged commit cad030d into elastic:master May 14, 2020
@dakrone dakrone deleted the itv2-dont-break-things branch May 14, 2020 21:33
dakrone added a commit to dakrone/elasticsearch that referenced this pull request May 14, 2020
This commit removes the ability to put V2 index templates that reference missing component templates.
It also prevents removing component templates that are being referenced by an existing V2 index
template.

Relates to elastic#53101
Resolves elastic#56314
dakrone added a commit that referenced this pull request May 14, 2020
Backports the following commits to 7.x:

- Don't allow invalid template combinations (#56397)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team v7.9.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not allow breaking v2 index templates by removing in-use component templates
5 participants