Repository navigation
Conversation
…g updates Generated-By: Claude Code
Generated-By: Claude Code
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The restart guard can allow a pod hosting both active leader-eligible replicas to restart, leaving the shard without an active leader-eligible replica; the behavior needs correction or an explicit exception and regression coverage.
1 open issue
What changed in this PR
This PR addresses mixed-replica shard availability during managed rolling updates by tracking leader-eligible NRT/TLOG replicas separately from PULL replicas.
Changes:
- Adds leader-eligible replica accounting and restart safeguards.
- Updates regression tests while preserving single-replica and unlimited-budget exceptions.
- Documents the behavior and adds a Helm changelog entry.
| File | Description |
|---|---|
| helm/solr-operator/Chart.yaml | Adds the managed-update fix to the changelog. |
| docs/modules/solr-cloud/pages/managed-updates.adoc | Documents the safeguard and exceptions. |
| controllers/util/solr_update_util.go | Tracks leader-eligible replicas during pod selection. |
| controllers/util/solr_update_util_test.go | Adds mixed-replica coverage and updates expectations. |
Review effort: Balanced
Generated-By: Claude Code
This branch has not been deployed
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.

🤖 AI Assisted
Fixes #922
maxShardReplicasUnavailablecounted PULL replicas like NRT/TLOG, so a budget of 2+ (or a percentage) could take down every leader-eligible replica of a shard in one round.maxShardReplicasUnavailable: 0.TestPickPodsToUpgradeexpectations changed: they selected the pod holding the last active TLOG replica of a PULL+TLOG+TLOG shard.Tests:
make prepare,make build: OK, nothing regeneratedmake test:ok controllers 124.349s,ok controllers/util 0.411smake lint DOCS_LINT=,operator-check-docs,make check-git: OK