Skip to content

fix: [stable-8.1][OCISDEV-1528] skip a not-ready node before reusing a cached grpc client - #767

Merged
2403905 merged 1 commit into
stable-8.1from
fix/OCISDEV-1528-stable-8.1
Oct 19, 2026
Merged

2403905 merged 1 commit into
stable-8.1from
fix/OCISDEV-1528-stable-8.1

Conversation

@2403905

@2403905 2403905 commented Oct 16, 2026

Copy link
Copy Markdown

Backport of #766 to stable-8.1.

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.mod and go.sum changes of the original pull request.

🤖 Generated with Claude Code

…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]>
@kw-security

kw-security commented Oct 16, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mzner
mzner self-requested a review October 16, 2026 15:51
@2403905
2403905 merged commit 9d60f33 into stable-8.1 Oct 19, 2026
@2403905
2403905 deleted the fix/OCISDEV-1528-stable-8.1 branch October 19, 2026 07:13
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