Bump major version for feature migration system indices #117243
Merged
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
This PR is in preparation for the ES 9 release. Lucene has BWC with indices created on one version prior to the current version (ES 9.0 is Lucene 10, so can support Lucene 9). To ensure that a system index created on an ES 7 (Lucene 8) can actually run on ES 9 (Lucene 10), the system indices need to be reindexed.
To reindex a system index for ES 9, the cluster need to be ugraded to
8.latest
and then run the Kibana Upgrade Assistant or use the Feature MIgration APIs directly. The feature migration APIs enable you to see what features require changes, initiate the automatic migration process, and check migration status.For system indices to show up as "needs upgrade" in the
GET /_migration/system_features
the minimum index and stack version need to be bumped from 7 to 8. The suffix added to migrated indices also need to use version 9.