kibana/packages/core/saved-objects
Pierre Gayvallet 79b5754a12
[ZDT] handle failures during switch from v2 algo (#161476)
## Summary

Fix a bug that was causing the cluster to fall into an unrecoverable
state if an error occurs during the document migration phase of a `v2`
to `zdt` migration (first zdt migration to take over the `v2`
algorithm).

When an error occurs during the document migration phase, the index gets
in a state where `mappingVersions` is present but not `docVersions`, and
the algorithm wasn't able to understand what this state was, and
considered it to just be a plain `zdt` predecessors, which caused an
error when entering the document migration phase, as `docVersions`
couldn't be found.

This PR addresses this, by properly identifying this specific state, and
acting accordingly (by initiating a document migration without checking
for the versions in `docVersions`, as we do then coming from a plain v2
algo)
2023-07-10 05:46:41 -07:00
..
core-saved-objects-api-browser [Saved Objects] Add a root level managed property to all saved object documents (#154515) 2023-04-20 12:14:48 -07:00
core-saved-objects-api-server [Telemetry] Update notice message (#158669) 2023-06-01 17:53:02 +02:00
core-saved-objects-api-server-internal [Migrations] Only pickup updated SO types when performing a compatible migration (#159962) 2023-06-30 07:40:40 -07:00
core-saved-objects-api-server-mocks Support generating legacy URL aliases for objects that change IDs during import. (#149021) 2023-04-03 10:54:23 +02:00
core-saved-objects-base-server-internal [modelVersions] add new migration change types (#161147) 2023-07-07 17:18:21 +02:00
core-saved-objects-base-server-mocks Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
core-saved-objects-browser [Saved Objects] Browser-side client deprecation notice (#148979) 2023-01-18 04:03:23 -07:00
core-saved-objects-browser-internal [Saved Objects] Add a root level managed property to all saved object documents (#154515) 2023-04-20 12:14:48 -07:00
core-saved-objects-browser-mocks [Saved Objects] Add a root level managed property to all saved object documents (#154515) 2023-04-20 12:14:48 -07:00
core-saved-objects-common [Saved Objects] Adds managed to import options (#155677) 2023-04-27 11:17:42 -07:00
core-saved-objects-import-export-server-internal Allow exporting all SO types (#159289) 2023-06-12 00:03:54 -07:00
core-saved-objects-import-export-server-mocks Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
core-saved-objects-migration-server-internal [ZDT] handle failures during switch from v2 algo (#161476) 2023-07-10 05:46:41 -07:00
core-saved-objects-migration-server-mocks Bootstrap ZDT migration algorithm (#151282) 2023-02-27 13:36:16 +01:00
core-saved-objects-server [modelVersions] add new migration change types (#161147) 2023-07-07 17:18:21 +02:00
core-saved-objects-server-internal [uiSettings] always use the latest config document to create the new one (#159649) 2023-06-19 00:09:27 -07:00
core-saved-objects-server-mocks Split the .kibana saved objects index into multiple indices (#154888) 2023-04-25 09:43:42 +02:00
core-saved-objects-utils-server [Migrations] Add support of deferred migrations (#153117) 2023-05-22 11:17:41 +02:00