diff --git a/src/core/server/integration_tests/saved_objects/migrations/group2/check_registered_types.test.ts b/src/core/server/integration_tests/saved_objects/migrations/group2/check_registered_types.test.ts index be38a8225d0f4..760a00b1e0e30 100644 --- a/src/core/server/integration_tests/saved_objects/migrations/group2/check_registered_types.test.ts +++ b/src/core/server/integration_tests/saved_objects/migrations/group2/check_registered_types.test.ts @@ -144,7 +144,7 @@ describe('checking migration metadata changes on all registered SO types', () => "telemetry": "561b329aaed3c15b91aaf2075645be3097247612", "ui-metric": "410a8ad28e0f44b161c960ff0ce950c712b17c52", "upgrade-assistant-ml-upgrade-operation": "e20ff1efa3c4757f5e7ff5fb897c557b08524c3a", - "upgrade-assistant-reindex-operation": "c7442ffe34954c117a74bf138e48e4c25095a6cf", + "upgrade-assistant-reindex-operation": "09ac8ed9c9acf7e8ece8eafe47d7019ea1472144", "upgrade-assistant-telemetry": "12bcbfc4e4ce64d2ca7c24f9acccd331a2bd2ab6", "uptime-dynamic-settings": "9a63ce80904a04be114749e426882dc3ff011137", "uptime-synthetics-api-key": "599319bedbfa287e8761e1ba49d536417a33fa13", diff --git a/x-pack/plugins/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts b/x-pack/plugins/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts index 36e32cfdea66b..d57909dd3f720 100644 --- a/x-pack/plugins/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts +++ b/x-pack/plugins/upgrade_assistant/server/saved_object_types/reindex_operation_saved_object_type.ts @@ -14,72 +14,14 @@ export const reindexOperationSavedObjectType: SavedObjectsType = { hidden: false, namespaceType: 'agnostic', mappings: { + dynamic: false, properties: { - reindexTaskId: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, - }, - }, indexName: { type: 'keyword', }, - newIndexName: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, - }, - }, status: { type: 'integer', }, - locked: { - type: 'date', - }, - lastCompletedStep: { - type: 'long', - }, - // Note that reindex failures can result in extremely long error messages coming from ES. - // We need to map these errors as text and use ignore_above to prevent indexing really large - // messages as keyword. See https://github.com/elastic/kibana/issues/71642 for more info. - errorMessage: { - type: 'text', - fields: { - keyword: { - type: 'keyword', - ignore_above: 256, - }, - }, - }, - reindexTaskPercComplete: { - type: 'float', - }, - runningReindexCount: { - type: 'integer', - }, - reindexOptions: { - properties: { - openAndClose: { - type: 'boolean', - }, - queueSettings: { - properties: { - queuedAt: { - type: 'long', - }, - startedAt: { - type: 'long', - }, - }, - }, - }, - }, }, }, };