fix: skip unreachable RedisReplication pods during role discovery - #1843
Open
leeworker wants to merge 1 commit into
Open
fix: skip unreachable RedisReplication pods during role discovery#1843leeworker wants to merge 1 commit into
leeworker wants to merge 1 commit into
Conversation
When a node crashes, pods can remain Running/Ready with stale status while Redis is unreachable. Fail-fast role probing blocked reconcile and prevented healthy pods from updating status and redis-role labels. Continue on per-pod probe failures in GetRedisNodesByRole and remove stale redis-role labels when UpdateRedisRoleLabel cannot reach a pod. Fixes OT-CONTAINER-KIT#1842 Signed-off-by: lixianzhu <lixianzhu@lixianzhudeMacBook-Pro.local> Co-authored-by: Cursor <cursoragent@cursor.com>
leeworker
requested review from
drivebyer,
iamabhishek-dubey and
shubham-cmyk
as code owners
July 22, 2026 06:36
Author
|
Hi maintainers, Could you please approve the workflows when you have a chance? This PR fixes #1842: when a worker node crashes, Redis pods can remain Thanks! |
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.
Fixes #1842
Summary
When a worker node crashes, Redis pods can remain
Running/Readywith stale Kubernetes status while Redis is unreachable.GetRedisNodesByRolepreviously fail-fast on the first probe error, which blocked the entire RedisReplication reconcile loop and prevented healthy pods from updatingstatus.masterNodeandredis-rolelabels.This change:
GetRedisNodesByRole(log + continue) instead of aborting reconcileredis-rolelabels from pods that are probeable in Kubernetes but unreachable over Redis, so master Services do not keep routing to dead pods during the stale-Ready windowTest plan
go test ./internal/k8sutils/... -run 'GetRedisNodesByRole|IsRedisPodProbeable'go test ./internal/controller/common/redis/... -run UpdateRedisRoleLabelgo test ./internal/controller/redisreplication/... -run 'TestReconcile'Made with Cursor