[Backport 3.8] [Memory Retention] Fix yellow cluster during rolling upgrade - #4940
Merged
rithinpullela merged 1 commit intoJul 28, 2026
Conversation
… 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
requested review from
HenryL27,
Zhangxunmt,
akolarkunnu,
austintlee,
b4sjoo,
jiapingzeng,
mingshl,
model-collapse,
pyek-bot,
rbhavna,
rithinpullela,
sam-herman,
ylwu-amzn and
zane-neo
as code owners
July 28, 2026 07:57
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
had a problem deploying
to
ml-commons-cicd-env-require-approval
July 28, 2026 07:59 — with
GitHub Actions
Failure
opensearch-ci-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
July 28, 2026 07:59 — with
GitHub Actions
Inactive
opensearch-ci-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
July 28, 2026 07:59 — with
GitHub Actions
Inactive
opensearch-ci-bot
had a problem deploying
to
ml-commons-cicd-env-require-approval
July 28, 2026 16:20 — with
GitHub Actions
Failure
jiapingzeng
approved these changes
Jul 28, 2026
opensearch-ci-bot
temporarily deployed
to
ml-commons-cicd-env-require-approval
July 28, 2026 16:58 — with
GitHub Actions
Inactive
mingshl
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport bc8e96f from #4937.