-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
migrations should never require users to work directly with system indices #126672
Comments
Pinging @elastic/kibana-core (Team:Core) |
The obvious easy approach would be a dedicated CLI for such maintenance-related operations. However, this will not work on Cloud as the user would not be able to use such CLI tools, so we can probably exclude this idea, unfortunately.
I find CLI/config option potentially very dangerous for this scenario to be honest. What if the user forgot to unset the option after the rollback? What if a version Thinking at a higher level, I'm really not sure such rollback logic should be handled by the application itself? Especially given that we're documenting that the (only) recommended approach when upgrading/rollbacking is to snapshot/restore?
Just to be sure, by CLI option you mean config option, right? If so, I think it would be an acceptable approach.
++, but we can ihmo even make this configurable
which would default to |
yes
Agree, it wouldn't harm to make it configurable. Another perspective on this problem could be to completely rely on snapshots for rollback so without snapshots it's just not possible. Now that there's a "Kibana feature state" in snapshots it's much easier for users to only restore the Kibana system indices. We also wouldn't need the N-1 index and could delete the old index as soon as the migration completes (by adding a delete index operation to the updateAliases action called from MARK_VERSION_INDEX_READY. This could be a high impact change, so to roll this out we could start by adding |
During our last grooming, we decided to prioritize the point around corrupted or unknown saved objects. I created #129018 to track this part specifically. |
We have not seen a lot of issues related to this since we made improvements to the SO migration system. We expect #135721 will address the rest. |
Since 8.0 Kibana's saved object indices are system indices, meaning users no longer have access to write to or delete these indices.
We should make sure that users don't need to access these indices directly for any upgrade failure resolutions or maintenance. Marking this as a bug since it's not very easy for users to circumvent the system indices protections (by design) so this has a fairly high cost to users.
Some examples where our documentation requires users to access system indices:
The text was updated successfully, but these errors were encountered: