kibana/packages/core
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
..
analytics Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
application [shared-ux-router] Add Router and Routes components (#159834) 2023-06-23 10:02:06 -05:00
apps Upgrade EUI to 83.0.0 (#160813) 2023-07-06 12:46:55 -07:00
base Add build_date to kbn:api/status (#157905) 2023-05-25 10:21:47 -07:00
capabilities [Lens] library annotation groups (#152623) 2023-05-31 16:41:21 -04:00
chrome [Serverless] Support banner header (#160912) 2023-07-06 14:43:26 -07:00
config/core-config-server-internal Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
custom-branding [Custom Branding] Fetch custom branding on unauthenticated pages (#149207) 2023-01-31 10:01:35 +01:00
deprecations Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
doc-links Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
elasticsearch Refactor KibanaMigrator, improve readability, maintainability and UT (#155693) 2023-06-01 14:47:40 +02:00
environment Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
execution-context Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
fatal-errors Upgraded EUI to v76.0.0 (#152506) 2023-03-14 14:27:40 -05:00
http [HTTP] Additional version negotiation mechanism (#160399) 2023-07-05 17:00:53 +02:00
i18n Upgrade EUI to v81.2.0 (#158781) 2023-06-05 13:51:40 -07:00
injected-metadata [Custom Branding] Fetch custom branding on unauthenticated pages (#149207) 2023-01-31 10:01:35 +01:00
integrations Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
lifecycle Per User Dark Mode Preference (#151507) 2023-04-25 15:19:20 -04:00
logging Generate kbn/ecs with ECS 8.6.1 (#151642) 2023-02-21 15:02:38 +01:00
metrics Adds support for event loop utilization to the core metrics service (#153717) 2023-03-29 14:35:55 -07:00
mount-utils Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
node Cleanup spread operators in reduce calls (#157471) 2023-05-22 04:50:24 -07:00
notifications Fix theming for error toasts (#160219) 2023-06-28 07:58:33 -07:00
overlays Upgrade EUI to 83.0.0 (#160813) 2023-07-06 12:46:55 -07:00
plugins Add build_date to kbn:api/status (#157905) 2023-05-25 10:21:47 -07:00
preboot Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
rendering Add build_date to kbn:api/status (#157905) 2023-05-25 10:21:47 -07:00
root [EBT] Add page title to browser-side context (#159936) 2023-06-20 04:31:25 -07:00
saved-objects [ZDT] handle failures during switch from v2 algo (#161476) 2023-07-10 05:46:41 -07:00
status /api/status - always return a consistent status code (#159768) 2023-06-20 02:06:40 -07:00
test-helpers [modelVersions] add new migration change types (#161147) 2023-07-07 17:18:21 +02:00
theme Flags core mocks packages as devOnly (#149466) 2023-01-26 08:46:06 -07:00
ui-settings [uiSettings] always use the latest config document to create the new one (#159649) 2023-06-19 00:09:27 -07:00
usage-data Implements default Permissions-Policy header (#158514) 2023-06-07 19:48:44 +02:00
user-settings Update CODEOWNERS to proper team (#155865) 2023-04-26 11:22:42 -04:00