From 3a5c6e6d8b44a8b6ac0976a13c57228ea56656b9 Mon Sep 17 00:00:00 2001 From: Thomas Cardonne Date: Fri, 17 May 2024 10:48:42 +0200 Subject: [PATCH] chore(changeset): add deprecation notice and upgrade task Signed-off-by: Thomas Cardonne --- .changeset/wild-eyes-grab.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.changeset/wild-eyes-grab.md b/.changeset/wild-eyes-grab.md index d97c92d99e..f382c406f3 100644 --- a/.changeset/wild-eyes-grab.md +++ b/.changeset/wild-eyes-grab.md @@ -2,9 +2,13 @@ '@backstage/plugin-search-backend-module-elasticsearch': minor --- -**BREAKING** The ElasticSearch indexer will now delete stale indices matching the indexer's pattern. +**BREAKING**: The ElasticSearch indexer will now delete stale indices matching the indexer's pattern. +The method `getAliases` of `ElasticSearchClientWrapper` has been deprecated and might be removed in future releases. An indexer using the `some-type-index__*` pattern will remove indices matching this pattern after indexation to prevent stale indices leading to shards exhaustion. +Before upgrading ensure that the index pattern doesn't match indices that are not managed by Backstage +and thus shouldn't be deleted. + Note: The ElasticSearch indexer already uses wildcards patterns to remove aliases on these indices.