-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SLM] Hide system indices in snapshot restore flow #123365
[SLM] Hide system indices in snapshot restore flow #123365
Conversation
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for fixing this issue, @sabarasaba!
I tested locally and can confirm that system indices are no longer listed in the indices list. I noticed a pre-existing issue: it's possible to provide an index pattern that doesn't match any indices in the snapshot. Doing so doesn't result in an error, but I think it also doesn't restore anything. I think it would be better to only allow index patterns that match something. I'll open an issue for that.
@elasticmachine merge upstream |
Thanks for having a look and creating that issue @yuliacech! |
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @sabarasaba |
💔 Backport failedThe pull request could not be backported due to the following error: How to fixRe-run the backport manually:
Questions ?Please refer to the Backport tool documentation |
Partially addresses #120314
Summary
The restore snapshot wizard lets you select system indices to restore. However, a restore request that includes a system index returns an error. Since we currently use the get snapshot api, we can leverage the
feature_states
array (which gives us a list of system indices in the snapshot) in order to create a new array of "normal" indices that don't include any system ones.Steps to test:
yarn es snapshot --license=trial -E path.repo=/tmp/es-backups
and also run kibanaData streams and indices
section also doesn't list any system indices.Note: here's a list of system index patterns elastic/elasticsearch#50251