elastic/kibana

Cleanup old migration backup indices

Open

#135,721 opened on Jul 5, 2022

View on GitHub
 (4 comments) (3 reactions) (0 assignees)TypeScript (19,065 stars) (8,021 forks)batch import
Feature:MigrationsTeam:Coregood first issue

Description

Upon upgrading Kibana, migrations will create a new index for every new version. Old indices are kept indefinitely. Because these "backup" indices are system indices users should not have to manually clean them up.

Although our documentation has recommended since 7.12+ that users only rollback using snapshots and don't rely on these backup indices, some users might still assume these can replace a snapshot for rollback purposes.

As a result we should probably not remove backup indices until 8.x but introduce a configuration option that defaults to keeping one version's backup indices.

Related to https://github.com/elastic/kibana/issues/126672

Contributor guide

Cleanup old migration backup indices · elastic/kibana#135721 | Good First Issue