Saved object migrations: collect all documents that fail to transform instead of stopping the migration on the first failure #90279
Labels
enhancement
New value added to drive a business result
Feature:Saved Objects
project:ResilientSavedObjectMigrations
Reduce Kibana upgrade failures by making saved object migrations more resilient
Similar to v1 migrations, v2 migrations will stop the migration as soon as a document transform throws an exception. v2 migrations should continue trying to transform all documents and collecting any failures. Once all documents were transformed the migration can fail with a complete list of failures allowing users to fix all documents at once.
This was particularly frustrating for v1 migrations, because users would have to manually remove the lock each time a document was fixed, just to bump into the next failing document and having to repeat all the steps again.
v2 migrations improves this slightly, but if there's many failing documents it can still be frustrating to have to restart a migration each time a document was fixed just to find the next problem.
The text was updated successfully, but these errors were encountered: