Open
Description
openedon Dec 14, 2021
The current README states that reindexing works like this:
- Create a new index with a "reindexed-" prefix (#30114).
- Create an index alias pointing from the original index name to the prefixed index name.
- Reindex from the original index into the prefixed index.
- Delete the old index and rename the prefixed index.
Per @yuliacech's comment at #120137 (comment), the correct steps are:
- Set index
test_data
to read-only using theindex.blocks.write: true
setting - Create new index
reindexed-v6.8-test_data
- Reindex documents from
test_data
toreindexed-v6.8-test_data
- Create alias
test_data
that points toreindexed-v6.8-test_data
- Delete index
test_data
Whoever updates the README should read through https://github.com/elastic/kibana/blob/main/x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts and verify what I've stated is correct.
While we're at it, we should also update this comment:
The comment states "so new data can be indexed", but that doesn't make sense because we're setting the index to be read-only. This might have just been a typo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment