Skip to content

node/grpc: Return to passthrough address resolution scheme #3334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Changelog for NeoFS Node
- Race between basic income processing stages leading to distribution failures in some cases (#3338)
- Wallet password logged by IR in some error cases (#3340)
- Embedded CN not stopped properly in some error cases potentially leading to inconsistent blockchain DB state (#3340)
- SN gRPC dialer switched from problematic `dns` address resolver to the `passthrough` one (#3334)

### Changed
- IR calls `ObjectService.SearchV2` to select SG objects now (#3144)
Expand Down
4 changes: 4 additions & 0 deletions cmd/neofs-node/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/keepalive"
"google.golang.org/grpc/resolver"
)

func initGRPC(c *cfg) {
// although docs state that 'passthrough' is set by default, it should be set explicitly for activation
resolver.SetDefaultScheme("passthrough")

if c.cfgMorph.client == nil {
initMorphComponents(c)
}
Expand Down
Loading