Repository navigation
fix: [stable-9.0][OCISDEV-1528] skip a not-ready node before reusing a cached grpc client - #769
Merged
Merged
Conversation
…a cached grpc client Backport of #766. The grpc client selector cached one client per resolved node address. It returned that client without a health check. When a node died, every caller kept reusing the same cached client against it. pkg/rgrpc/todo/pool/selector.go now caches the connection together with the client. The selector shuffles the known node addresses on each lookup. It skips any cached connection in the TransientFailure, Connecting, or Shutdown state. It returns the first node that is ready, or dials a node it has not tried yet. If no known node is ready, the selector reuses the first node it found. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
mzner
approved these changes
Oct 16, 2026
deyankiteworks
approved these changes
Oct 19, 2026
kobergj
approved these changes
Oct 19, 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 of #766 to
stable-9.0.The selector skips cached connections that are not ready. It reuses the first known node only if no node is ready.
The backport does not include the
go.modandgo.sumchanges of the original pull request.🤖 Generated with Claude Code