Skip to content

Corrupt Saved Object documents can cause a migration every time Kibana starts up #65612

@rudolf

Description

@rudolf

When starting up, Kibana scans the .kibana alias/index for documents that require a migration. For each document being migrated, we do a basic validation that checks if the type and namespace in the id matches the type and namespace fields. If these don't match, we don't apply the migration and just write the document as-is. Because the document's migrationVersion wasn't bumped, the next time Kibana starts up it will again see outdated documents and start a new migration.

if (serializer.isRawSavedObject(raw)) {

Because the Saved Objects API ensures that written documents are always valid, this will only affect users which write saved object documents directly into Elasticsearch instead of using the Kibana API's.

As a first step we can add logging to highlight this case to users.

Metadata

Metadata

Assignees

Labels

Feature:Saved ObjectsTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//bugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions