Saved Object Migrations fail when a plugin is disabled #56731
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Saved Objects
project:ResilientSavedObjectMigrations
Reduce Kibana upgrade failures by making saved object migrations more resilient
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
When Saved Object migrations run they update the Saved Object with a
migrationVersion
property like:However, if a plugin that previously migrated data is later disabled, Saved Object Migrations will throw the following exception and Kibana will refuse to start.
Note: disabling a plugin won't trigger a migration to run. But if there's other objects that are outdated these will trigger the migration to run which will then fail on the disabled plugin's migration.
I.e. disabling the spaces plugin, and running a version of Kibana which has a dashboard migration >
7.1.1
will trigger a migration, and then throw when attempting to migrate the above mentioned document.This could also happen when importing Saved Objects.
Caused by:
kibana/src/core/server/saved_objects/migrations/core/document_migrator.ts
Lines 334 to 345 in 85c8232
The text was updated successfully, but these errors were encountered: