Skip to content

grpclb: Improve error information for "Unable to fallback, no fallback addresses found" #7997

@ejona86

Description

@ejona86

#7960 fixed a case for grpclb that would cause it to hang if there were no fallback addresses. Now in that case instead of hanging it produces the error "UNAVAILABLE: Unable to fallback, no fallback addresses found", which is much better than hanging. However, it doesn't give any information to actually debug what's happening.

I'm thinking something along the lines of:

  1. If there are fallback addresses, use one of their subchannel's error (ideally we'd round-robin over them or some such, but baby steps)
  2. If we have no primary addresses (RPC to gRPCLB has never been successful), we should include the gRPC-LB contact error information (the information from the failing RPC, or create a message describing the RPC hasn't returned yet)
  3. Otherwise, there are primary addresses and we should use one of their subchannel's error (ideally we'd round-robin over them or some such, but baby steps)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions