Skip to content

Fix corrupted Metadata from index and alias having the same name (#91456)#91469

Merged
elasticsearchmachine merged 1 commit intoelastic:8.5from
original-brownbear:91456-8.5
Nov 9, 2022
Merged

Fix corrupted Metadata from index and alias having the same name (#91456)#91469
elasticsearchmachine merged 1 commit intoelastic:8.5from
original-brownbear:91456-8.5

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

This fixes a bug introduced in #87863 which added a Metadata copy constructor with separate name collision checks that assumed index name and alias names were already validated in IndexMetada. => fixed corrupted states by actually adding the validation to IndexMetadata to make it impossible to instantiate a broken IndexMetadata in the first place.

back port of #91456

)

This fixes a bug introduced in #87863
which added a Metadata copy constructor with separate name collision checks that
assumed index name and alias names were already validated in `IndexMetada`.
=> fixed corrupted states by actually adding the validation to `IndexMetadata`
to make it impossible to instantiate a broken `IndexMetadata` in the first place.
@original-brownbear original-brownbear added :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Nov 9, 2022
@elasticsearchmachine elasticsearchmachine merged commit c1310c4 into elastic:8.5 Nov 9, 2022
@original-brownbear original-brownbear deleted the 91456-8.5 branch November 9, 2022 16:13
@original-brownbear original-brownbear restored the 91456-8.5 branch November 30, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.5.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants