kibana/packages/core/saved-objects/core-saved-objects-migration-server-internal
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
..
src [ZDT] handle failures during switch from v2 algo (#161476) 2023-07-10 05:46:41 -07:00
index.ts Migrations: dynamically adjust batchSize when reading (#157494) 2023-05-30 06:25:07 -07:00
jest.config.js Migrate remaining parts of server-side SO domain to packages (#139305) 2022-08-26 01:53:37 -07:00
kibana.jsonc Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
package.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
README.md Migrate remaining parts of server-side SO domain to packages (#139305) 2022-08-26 01:53:37 -07:00
tsconfig.json [ZDT migration] Don't run document migration on non-migrator nodes (#156345) 2023-05-04 07:26:06 -07:00

@kbn/core-saved-objects-migration-server-internal

This package contains the internal implementation of core's server-side savedObjects migration feature.