API Changes
- This release adds an xDS URI scheme called
xds
. This is the stable version of the schemexds-experimental
that was introduced in v1.28.0.xds-experimental
scheme will be removed in subsequent releases so you must switch toxds
scheme instead.xds
scheme is a client side implementation of xDSv2 APIs. This allows a gRPC client written in Go to receive configuration from an xDSv2 API compatible server and use that configuration to load balance RPCs. In this release, only the virtual host matching, default path (“” or “/”) matching and cluster route action are supported. The features supported in a given release are documented here. - balancer: move Balancer and Picker to V2; delete legacy API (#3180, #3431)
- Replace
balancer.Balancer
andbalancer.Picker
with theV2Balancer
andV2Picker
versions. - Remove
balancer.ClientConn.UpdateBalancerState
. - Remove the original balancer plugin API, based on
grpc.Balancer
, and all related functionality. - Remove the deprecated
naming
package.
- Replace
Behavior Changes
- grpclb, dns: pass balancer addresses via resolver.State (#3614)
New Features
- balancer: support hierarchical paths in addresses (#3494)
- client: option to surface connection errors to callers (#3430)
- Special Thanks: @sethp-nr
- credentials: pass address attributes from balancer to creds handshaker. (#3548)
- credentials: local creds implementation (#3517)
- advancedtls: add fine-grained verification levels in XXXOptions (#3454)
- xds: handle weighted cluster as route action (#3613)
- xds: add weighted_target balancer (#3541)
Performance Improvements
- transport: move append of header and data down to http2 write loop to save garbage (#3568)
- Special Thanks: @bboreham
- server.go: use worker goroutines for fewer stack allocations (#3204)
- Special Thanks: @adtac
Bug Fixes
- stream: fix calloption.After() race in finish (#3672)
- retry: prevent per-RPC creds error from being transparently retried (#3677, #3691)
- cache: callback without cache's mutex (#3603)
- client: properly check GRPC_GO_IGNORE_TXT_ERRORS environment variable (#3532)
- Special Thanks: @t33m
- balancergroup: fix connectivity state (#3585)
- xds: use google default creds (#3673)
- xds: accept either "" or "/" as the prefix for the default route (#3535)
- xds: reject RDS response containing match with case-sensitive false (#3592)