Skip to content

System index descriptors support mixed versions#71370

Merged
jaymode merged 3 commits intoelastic:7.xfrom
jaymode:prior_system_index_descriptors_7x
Apr 7, 2021
Merged

System index descriptors support mixed versions#71370
jaymode merged 3 commits intoelastic:7.xfrom
jaymode:prior_system_index_descriptors_7x

Conversation

@jaymode
Copy link
Copy Markdown
Member

@jaymode jaymode commented Apr 6, 2021

System index descriptors are used to describe a system index, which are
expected to change as new versions are developed. As part of this, the
descriptors had a minimum supported version field so that the contents
within that descriptor would not be applied if there were nodes older
than that version. However, this falls short of being able to
accurately describe what a system index should look like in a given
cluster where there are mixed node versions.

This change moves us towards being able to accurately describe and
know what the system index should look like. A system index is now
able to accept a list of the prior system index descriptor objects
so that clusters with mixed versions can select the appropriate
descriptor and ensure the index is created properly. As the node
versions change during a rolling upgrade, the cluster will then be
able to adapt the system index to the most recent version once all
master and data nodes have been upgraded.

Co-authored-by: Tim Vernum tim@adjective.org
Co-authored-by: Yang Wang ywangd@gmail.com
Backport of #71144

System index descriptors are used to describe a system index, which are
expected to change as new versions are developed. As part of this, the
descriptors had a minimum supported version field so that the contents
within that descriptor would not be applied if there were nodes older
than that version. However, this falls short of being able to
accurately describe what a system index should look like in a given
cluster where there are mixed node versions.

This change moves us towards being able to accurately describe and
know what the system index should look like. A system index is now
able to accept a list of the prior system index descriptor objects
so that clusters with mixed versions can select the appropriate
descriptor and ensure the index is created properly. As the node
versions change during a rolling upgrade, the cluster will then be
able to adapt the system index to the most recent version once all
master and data nodes have been upgraded.

Co-authored-by: Tim Vernum <tim@adjective.org>
Co-authored-by: Yang Wang <ywangd@gmail.com>
Backport of elastic#71144
@jaymode jaymode merged commit da7f2cf into elastic:7.x Apr 7, 2021
@jaymode jaymode deleted the prior_system_index_descriptors_7x branch April 7, 2021 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant