Skip to content

[Backport 3.8] [Memory Retention] Fix yellow cluster during rolling upgrade - #4940

Merged
rithinpullela merged 1 commit into
opensearch-project:3.8from
opensearch-ci-bot:backport/backport-4937-to-3.8
Jul 28, 2026
Merged

[Backport 3.8] [Memory Retention] Fix yellow cluster during rolling upgrade#4940
rithinpullela merged 1 commit into
opensearch-project:3.8from
opensearch-ci-bot:backport/backport-4937-to-3.8

Conversation

@opensearch-ci-bot

Copy link
Copy Markdown
Contributor

Backport bc8e96f from #4937.

… retention job on retention_enabled (opensearch-project#4937)

Creating the jobs index from the first upgraded node strands its replica
(replicas cannot be allocated to nodes older than the primary's node),
leaving the cluster yellow for the whole rolling-upgrade window and
failing downstream BWC tests.

Only touch the jobs index when it already exists or when every node in
the cluster is on at least this node's version; otherwise defer — the
cluster state change from the last old node leaving re-runs the listener.
Also require plugins.ml_commons.memory.retention_enabled (opt-in,
default false) before creating the memory retention job.

Signed-off-by: Erfan Ballew <ballewer@amazon.com>
Co-authored-by: Erfan Ballew <ballewer@amazon.com>
(cherry picked from commit bc8e96f)
Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com>
@opensearch-ci-bot
opensearch-ci-bot had a problem deploying to ml-commons-cicd-env-require-approval July 28, 2026 07:59 — with GitHub Actions Failure
@opensearch-ci-bot
opensearch-ci-bot had a problem deploying to ml-commons-cicd-env-require-approval July 28, 2026 07:59 — with GitHub Actions Failure
@opensearch-ci-bot
opensearch-ci-bot temporarily deployed to ml-commons-cicd-env-require-approval July 28, 2026 07:59 — with GitHub Actions Inactive
@opensearch-ci-bot
opensearch-ci-bot temporarily deployed to ml-commons-cicd-env-require-approval July 28, 2026 07:59 — with GitHub Actions Inactive
@opensearch-ci-bot
opensearch-ci-bot had a problem deploying to ml-commons-cicd-env-require-approval July 28, 2026 16:20 — with GitHub Actions Failure
@opensearch-ci-bot
opensearch-ci-bot temporarily deployed to ml-commons-cicd-env-require-approval July 28, 2026 16:58 — with GitHub Actions Inactive
@rithinpullela
rithinpullela merged commit caac0e5 into opensearch-project:3.8 Jul 28, 2026
23 of 28 checks passed
@opensearch-ci-bot
opensearch-ci-bot deleted the backport/backport-4937-to-3.8 branch July 28, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants