Skip to content

[7.x] Add more validation for data stream aliases.#73463

Merged
martijnvg merged 1 commit intoelastic:7.xfrom
martijnvg:backport_73416
May 27, 2021
Merged

[7.x] Add more validation for data stream aliases.#73463
martijnvg merged 1 commit intoelastic:7.xfrom
martijnvg:backport_73416

Conversation

@martijnvg
Copy link
Copy Markdown
Member

Backport #73416 to 7.x branch.

Currently when attempting to an alias to points to both data streams and regular indices
the alias does get created, but points only to data streams. With this change attempting
to add such aliases results in a client error.

Currently when adding data stream aliases with unsupported parameters (e.g. filter or routing)
the alias does get created, but without the unsupported parameters. With this change
attempting to create aliases to point to data streams with unsupported parameters will result
in a client error.

Relates to #66163

Currently when attempting to an alias to points to both data streams and regular indices
the alias does get created, but points only to data streams. With this change attempting
to add such aliases results in a client error.

Currently when adding data stream aliases with unsupported parameters (e.g. filter or routing)
the alias does get created, but without the unsupported parameters. With this change
attempting to create aliases to point to data streams with unsupported parameters will result
in a client error.

Relates to elastic#66163
@martijnvg martijnvg merged commit 4dee9ee into elastic:7.x May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant