mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Prior to this change, when migrations failed (for example when a .kibana_1 index already exists and no alias does) the awaitMigration promise would resolve incorrectly. This allowed subsequent plugins, including Spaces, to proceed using the SavedObjectsClient/Repository to create documents. This commonly caused a .kibana index to be created, which would then block the creation of a .kibana alias, and everything would grind to a halt.
This commit is contained in:
parent
5841467b6e
commit
990657c72b
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export class IndexMigrator {
|
|||
pollInterval: context.pollInterval,
|
||||
|
||||
async isMigrated() {
|
||||
return requiresMigration(context);
|
||||
return !(await requiresMigration(context));
|
||||
},
|
||||
|
||||
async runMigration() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue