Skip to content

[Fleet] Add error handling: uploaded package missing from in-memory cache #82010

@skh

Description

@skh

Currently, when Kibana is restarted, all packages are gone from the in-memory cache, so further operations that need access to package content will potentially fail, even if the package assets (dashboards, visualizations, pipelines, mappings etc.) are still safely installed.

For registry packages, there is ensureCachedArchiveInfo() that re-fetches the package from the registry and re-fills the in-memory cache whenever necessary.

For uploaded packages, we need a strategy how to handle this case

  • Uninstall uploaded packages and log a warning about this during /setup?
  • Show a warning in the UI when uploaded packages with missing sources are detected?
  • Log a warning whenever an operation fails to access a package file and hope for the best?

This problem will be less urgent once we store all packages in a dedicated ES index (see #81110 ). It can still happen when the package storage index disappears, is accidentally deleted, wasn’t included in a backup etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:EPMFleet team's Elastic Package Manager (aka Integrations) projectFeature:FleetFleet team's agent central management projectTeam:FleetTeam label for Observability Data Collection Fleet team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions