-
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
[SO Migration] Improve the alias detection #105758
Comments
Pinging @elastic/kibana-core (Team:Core) |
+1 to the "be smart" approach. If we can avoid introducing another failure scenario without increasing complexity in a significant way, it feels worth it to me. |
This failed test might be related: #97942 |
Also this other failed test might be related: #98463 |
Bumping this issue for discussion. I'm reviewing some failed tests and they seem to be related to this issue. @elastic/kibana-core should we increase the priority on this one? |
@afharo I believe these failed errors come from esArchiver, left a comment #121050 (comment) |
Currently, the system will attempt to try the migration if either the
versionAlias
or thecurrentAlias
is missing.In theory, as both alias are created at the same time atomically during the
MARK_VERSION_INDEX_READY
step, they should both be either existing or non-existing.However, in some case of migration failures requiring manual intervention, a human mistake may cause to have only one or the other to be manually created.
If the
versionAlias
is missing, the migration system will try to attempt a migration from the current index to itself (e.g.kibana_7.14.0
to.kibana_7.14.0
). If this has no effect on the data integrity, it will fail during the later steps, as we would be write-blocking what we consider to be the source index.We should improve the checks we're doing here:
kibana/src/core/server/saved_objects/migrationsv2/model/model.ts
Lines 65 to 72 in 6b26949
To either
versionAlias
is missingversionAlias
and then continue toOUTDATED_DOCUMENTS_SEARCH_OPEN_PIT
as done when both aliases are present.The text was updated successfully, but these errors were encountered: