Skip to content

Least request causes panic on ReporterError starting in 1.71.0 #8332

@atollena

Description

@atollena

What version of gRPC are you using?

1.71.1, master.

What version of Go are you using (go version)?

go version go1.24.2

What operating system (Linux, Windows, …) and version?

Linux, MacOS

What did you do?

I'm using the least_request_experimental balancer. A resolver reports an error.

What did you expect to see?

Maybe an error log statement reporting the resolver error.

What did you see instead?

gRPC panics because it's embedded balancer at

// Embeds balancer.Balancer because needs to intercept UpdateClientConnState
// to learn about choiceCount.
balancer.Balancer
is nil.

Calls to methods that are not overridden by leastRequestBalancer directly should instead be explicitly forwarded to the child balancer (or leastRequestBalancer should use endpointsharding as its embedded balancer instead of having a separate child field).

Metadata

Metadata

Assignees

Labels

Area: Resolvers/BalancersIncludes LB policy & NR APIs, resolver/balancer/picker wrappers, LB policy impls and utilities.P1Type: Bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions