Update module google.golang.org/grpc to v1.64.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
google.golang.org/grpc | require | minor |
v1.51.0 -> v1.64.0
|
Release Notes
grpc/grpc-go (google.golang.org/grpc)
v1.64.0
: Release 1.64.0
API Changes
- stats: Deprecate
InPayload.Data
andOutPayload.Data
; they were experimental and will be deleted in the next release (#7121)
Behavior Changes
- codec: Remove handling of environment variable
GRPC_GO_ADVERTISE_COMPRESSORS
to suppress setting supported compressors ingrpc-accept-encoding
header. Compressors will always be advertised, as they have been by default for some time (#7203)
New Features
- resolver/dns: Add
SetMinResolutionInterval
to set the minimum interval at which DNS re-resolutions may occur (#6962)- Special Thanks: @HomayoonAlimohammadi
- peer/peer: Implement the
fmt.Stringer
interface for pretty printingPeer
, and - metadata/metadata: Implement the
fmt.Stringer
interface for pretty printingMD
(#7137)- Special Thanks: @AnomalRoil
Performance Improvements
- client: Improve RPC performance by reducing work while holding a lock (#7132)
Bug Fixes
- transport/server: Display the proper timeout value when keepalive pings are not ack'd in time (#7038)
- Special Thanks: @BatmanAoD
- channelz: Fix bug that was causing the subchannel's target to be unset (#7189)
- stats: Fix bug where peer was not set in context when calling stats handler for
OutPayload
,InPayload
, andEnd
(#7096)
Dependencies
- deps: Remove dependency on deprecated
github.com/golang/protobuf
module (#7122)
Documentation
- grpc: Deprecate
WithBlock
,WithReturnConnectionError
,FailOnNonTempDialError
which are ignored byNewClient
(#7097)- Special Thanks: @pellared
- grpc: Deprecate
Dial
andDialContext
. These will continue to be supported throughout 1.x, but are deprecated to direct users toNewClient
(See #7090 for more information) - examples: Add custom lb example (#6691)
v1.63.2
: Release 1.63.2
Bugs
- Fix the user agent string
v1.63.1
: Release 1.63.1
Bugs
- grpc: fixed subchannel log messages to properly reference the parent channel (#7101)
- Special thanks: @daniel-weisse
API Changes
- grpc: remove Deprecated tag from Dial and DialContext; these will be deprecated in v1.64 instead (#7103)
v1.63.0
: Release 1.63.0
Behavior Changes
- grpc: Return canonical target string from
resolver.Address.String()
(experimental) (#6923) - client & server: when using write buffer pooling, use input value for buffer size instead of size*2 (#6983)
- Special Thanks: @raghav-stripe
New Features
- grpc: add
ClientConn.CanonicalTarget()
to return the canonical target string. (#7006) - xds: implement LRS named metrics support (gRFC A64) (#7027)
- Special Thanks: @danielzhaotongliu
- grpc: introduce
grpc.NewClient
to allow users to create new clients in idle mode and with "dns" as the default resolver (#7010)- Special Thanks: @bruuuuuuuce
API Changes
- grpc: stabilize experimental method
ClientConn.Target()
(#7006)
Bug Fixes
- xds: fix an issue that would cause the client to send an empty list of resources for LDS/CDS upon reconnecting with the management server (#7026)
- server: Fix some errors returned by a server when using a
grpc.Server
as anhttp.Handler
with the Go stdlib HTTP server (#6989) - resolver/dns: add
SetResolvingTimeout
to allow configuring the DNS resolver's global timeout (#6917)- Special Thanks: @and1truong
- Set the security level of Windows named pipes to NoSecurity (#6956)
- Special Thanks: @irsl
v1.62.2
: Release 1.62.2
Dependencies
- Update http2 library to address vulnerability CVE-2023-45288
v1.62.1
: Release 1.62.1
Bug Fixes
- xds: fix a bug that results in
no matching virtual host found
RPC errors due to a difference between the target and LDS resource names (#6997) - server: fixed stats handler data
InPayload.Length
for unary RPC calls (#6766)- Special Thanks: @hueypark
- grpc: the experimental
RecvBufferPool
DialOption
andServerOption
are now active during unary RPCs with compression (#6766)- Special Thanks: @hueypark
- grpc: trim whitespaces in
accept-encoding
header before determining compressors- Special Thanks: @sercand
v1.62.0
: Release 1.62.0
New Features
- grpc: Add StaticMethod CallOption as a signal to stats handler that a method is safe to use as an instrument key (#6986)
Behavior Changes
- grpc: Return canonical target string from ClientConn.Target() and resolver.Address.String() (#6923)
Bug Fixes
- server: wait to close connection until incoming socket is drained (with timeout) to prevent data loss on client-side (#6977)
- Special Thanks: @s-matyukevich for discovering the root cause
Performance Improvements
- *: Allow building without
x/net/trace
by usinggrpcnotrace
to enable dead code elimination (#6954)- Special Thanks: @hugelgupf
- rand: improve performance and simplify implementation of
grpcrand
by adoptingmath/rand
's top-level functions for go version 1.21.0 and newer. (#6925)- Special Thanks: @kmirzavaziri
Dependencies
- *: Use google.golang.org/protobuf/proto instead of github.com/golang/protobuf. (#6919)
- Special Thanks: @Clement-Jean
[!NOTE] The above change in proto library usage introduces a minor behavior change within those libraries. The old
github.com/golang/protobuf
library would error if given anil
message toMarshal
, while the newgoogle.golang.org/protobuf
library will successfully output zero bytes in this case. This means server method handlers that didreturn nil, nil
will now return an empty message and no error, while it used to return an error. This also affects the client side, where clients sendingnil
messages used to fail without sending the RPC, and now they will send an empty message.
v1.61.2
: Release 1.61.2
Dependencies
- Update http2 library to address vulnerability CVE-2023-45288
v1.61.1
: Release 1.61.1
Bug Fixes
- server: wait to close connection until incoming socket is drained (with timeout) to prevent data loss on client-side (#6977)
- Special Thanks: @s-matyukevich for discovering the root cause
v1.61.0
: Release 1.61.0
New Features
- resolver: provide method,
AuthorityOverrider
, to allow resolver.Builders to override the default authority for aClientConn
. (EXPERIMENTAL) (#6752)- Special Thanks: @Aditya-Sood
- xds: add support for mTLS Credentials in xDS bootstrap (gRFC A65) (#6757)
- Special Thanks: @atollena
- server: add
grpc.WaitForHandlers
ServerOption
to causeServer.Stop
to block until method handlers return. (EXPERIMENTAL) (#6922)
Performance Improvements
- grpc: skip compression of empty messages as an optimization (#6842)
- Special Thanks: @jroper
- orca: use atomic pointer to improve performance in server metrics recorder (#6799)
- Special Thanks: @danielzhaotongliu
Bug Fixes
- client: correctly enable TCP keepalives with OS defaults on windows (#6863)
- Special Thanks: @mmatczuk
- server: change some stream operations to return
UNAVAILABLE
instead ofUNKNOWN
when underlying connection is broken (#6891)- Special Thanks: @mustafasen81
- server: fix
GracefulStop
to block until all method handlers return (v1.60 regression). (#6922) - server: fix two bugs that could lead to panics at shutdown when using
NumStreamWorkers
(EXPERIMENTAL). (#6856) - reflection: do not send invalid descriptors to clients for files that cannot be fully resolved (#6771)
- Special Thanks: @jhump
- xds: don't fail channel/server startup when xds creds is specified, but bootstrap is missing certificate providers (#6848)
- xds: Atomically read and write xDS security configuration client side (#6796)
- xds/server: fix RDS handling for non-inline route configs (#6915)
v1.60.1
Bug Fixes
- server: fix two bugs that could lead to panics at shutdown when using NumStreamWorkers (experimental feature).
v1.60.0
: Release 1.60.0
Security
- credentials/tls: if not set, set TLS MinVersion to 1.2 and CipherSuites according to supported suites not forbidden by RFC7540.
- This is a behavior change to bring us into better alignment with RFC 7540.
API Changes
- resolver: remove deprecated and experimental
ClientConn.NewServiceConfig
(#6784) - client: remove deprecated
grpc.WithServiceConfig
DialOption
(#6800)
Bug Fixes
- client: fix race that could cause a deadlock while entering idle mode and receiving a name resolver update (#6804)
- client: always enable TCP keepalives with OS defaults (#6834)
- credentials/alts: fix a bug preventing ALTS from connecting to the metadata server if the default scheme is overridden (#6686)
- Special Thanks: @mjamaloney
Behavior Changes
- server: Do not return from Stop() or GracefulStop() until all resources are released (#6489)
- Special Thanks: @fho
Documentation
- codes: clarify that only codes defined by this package are valid and that users should not cast other values to
codes.Code
(#6701)
v1.59.0
: Release 1.59.0
Behavior Changes
- balancer: grpc will switch to case-sensitive balancer names soon; log a warning if a capital letter is encountered in an LB policy name (#6647)
- server: allow applications to send arbitrary data in the
grpc-status-details-bin
trailer (#6662) - client: validate
grpc-status-details-bin
trailer and pass through the trailer to the application directly (#6662)
New Features
- tap (experimental): Add Header metadata to tap handler (#6652)
- Special Thanks: @pstibrany
- grpc: channel idleness enabled by default with an
idle_timeout
of30m
(#6585)
Documentation
- examples: add an example of flow control behavior (#6648)
Bug Fixes
- xds: fix hash policy header to skip "-bin" headers and read content-type header as expected (#6609)
v1.58.3
: Release 1.58.3
Security
-
server: prohibit more than MaxConcurrentStreams handlers from running at once (CVE-2023-44487)
In addition to this change, applications should ensure they do not leave running tasks behind related to the RPC before returning from method handlers, or should enforce appropriate limits on any such work.
v1.58.2
: Release 1.58.2
Bug Fixes
-
balancer/weighted_round_robin: fix ticker leak on update
A new ticker is created every time there is an update of addresses or configuration, but was not properly stopped. This change stops the ticker when it is no longer needed.
v1.58.1
: Release 1.58.1
Bug Fixes
- grpc: fix a bug that was decrementing active RPC count too early for streaming RPCs; leading to channel moving to IDLE even though it had open streams
- grpc: fix a bug where transports were not being closed upon channel entering IDLE
v1.58.0
: Release 1.58.0
API Changes
See #6472 for details about these changes.
- balancer: add
StateListener
toNewSubConnOptions
forSubConn
state updates and deprecateBalancer.UpdateSubConnState
(#6481)-
UpdateSubConnState
will be deleted in the future.
-
- balancer: add
SubConn.Shutdown
and deprecateBalancer.RemoveSubConn
(#6493)-
RemoveSubConn
will be deleted in the future.
-
- resolver: remove deprecated
AddressType
(#6451)- This was previously used as a signal to enable the "grpclb" load balancing policy, and to pass LB addresses to the policy. Instead,
balancer/grpclb/state.Set()
should be used to add these addresses to the name resolver's output. The built-in "dns" name resolver already does this.
- This was previously used as a signal to enable the "grpclb" load balancing policy, and to pass LB addresses to the policy. Instead,
- resolver: add new field
Endpoints
toState
and deprecateAddresses
(#6471)-
Addresses
will be deleted in the future.
-
New Features
- balancer/leastrequest: Add experimental support for least request LB policy and least request configured as a custom xDS policy (#6510, #6517)
- Set
GRPC_EXPERIMENTAL_ENABLE_LEAST_REQUEST=true
to enable
- Set
- stats: Add an RPC event for blocking caused by the LB policy's picker (#6422)
Bug Fixes
- clusterresolver: fix deadlock when dns resolver responds inline with update or error at build time (#6563)
- grpc: fix a bug where the channel could erroneously report
TRANSIENT_FAILURE
when actually moving toIDLE
(#6497) - balancergroup: do not cache closed sub-balancers by default; affects
rls
,weightedtarget
andclustermanager
LB policies (#6523) - client: fix a bug that prevented detection of RPC status in trailers-only RPC responses when using
ClientStream.Header()
, and prevented retry of the RPC (#6557)
Performance Improvements
- client & server: Add experimental
[With]SharedWriteBuffer
to improve performance by reducing allocations when sending RPC messages. (Disabled by default.) (#6309)- Special Thanks: @s-matyukevich
v1.57.2
: Release 1.57.2
Bug Fixes
- server: fix a bug introduced in v1.57.1 that causes connections to eventually stop processing any RPCs.
v1.57.1
: Release 1.57.1
Security
-
server: prohibit more than MaxConcurrentStreams handlers from running at once (CVE-2023-44487)
In addition to this change, applications should ensure they do not leave running tasks behind related to the RPC before returning from method handlers, or should enforce appropriate limits on any such work.
v1.57.0
: Release 1.57.0
API Changes
- resolver: remove deprecated
Target.Scheme
andTarget.Authority
. UseURL.Scheme
andURL.Host
instead, respectively (#6363)
Behavior Changes
- client: percent-encode the default authority for the channel (#6428)
- xds: require EDS service name to be set in a CDS cluster with an 'xdstp' resource name (gRFC A47) (#6438)
New Features
- reflection: support the v1 reflection service and update
Register
to register both v1alpha and v1 (#6329) - xds: add support for string matcher in RBAC header matching (#6419)
- alts: add support for
GRPC_ALTS_MAX_CONCURRENT_HANDSHAKES
env var (#6267) - balancer/weightedroundrobin: de-experimentalize name of LB policy (#6477)
Bug Fixes
- status:
status.FromError
now returns an error withcodes.Unknown
when the error implements theGRPCStatus()
method, and callingGRPCStatus()
returnsnil
(#6374)- Special Thanks: @atollena
- server: fix bug preventing TCP user timeout from being set on the connection when TLS is used (#6321)
- Special Thanks: @tobotg
- client: eliminate connection churn during an address update that differs only in balancer attributes (#6439)
- clusterresolver: handle EDS nacks, resource-not-found errors, and DNS Resolver errors correctly (#6436, #6461)
- xds/ringhash: cache connectivity state of subchannels inside picker to avoid rare races (#6351)
v1.56.3
: Release 1.56.3
Security
-
server: prohibit more than MaxConcurrentStreams handlers from running at once (CVE-2023-44487)
In addition to this change, applications should ensure they do not leave running tasks behind related to the RPC before returning from method handlers, or should enforce appropriate limits on any such work.
v1.56.2
: Release 1.56.2
- status: To fix a panic,
status.FromError
now returns an error withcodes.Unknown
when the error implements theGRPCStatus()
method, and callingGRPCStatus()
returnsnil
. (#6374)
v1.56.1
: Release 1.56.1
- client: handle empty address lists correctly in addrConn.updateAddrs
v1.56.0
: Release 1.56.0
New Features
- client: support channel idleness using
WithIdleTimeout
dial option (#6263)- This feature is currently disabled by default, but will be enabled with a 30 minute default in the future.
- client: when using pickfirst, keep channel state in TRANSIENT_FAILURE until it becomes READY (gRFC A62) (#6306)
- xds: Add support for Custom LB Policies (gRFC A52) (#6224)
- xds: support pick_first Custom LB policy (gRFC A62) (#6314) (#6317)
- client: add support for pickfirst address shuffling (gRFC A62) (#6311)
- xds: Add support for String Matcher Header Matcher in RDS (#6313)
- xds/outlierdetection: Add Channelz Logger to Outlier Detection LB (#6145)
- Special Thanks: @s-matyukevich
- xds: enable RLS in xDS by default (#6343)
- orca: add support for application_utilization field and missing range checks on several metrics setters
- balancer/weightedroundrobin: add new LB policy for balancing between backends based on their load reports (gRFC A58) (#6241)
- authz: add conversion of json to RBAC Audit Logging config (#6192)
- authz: add support for stdout logger (#6230 and #6298)
- authz: support customizable audit functionality for authorization policy (#6192 #6230 #6298 #6158 #6304 and #6225)
Bug Fixes
- orca: fix a race at startup of out-of-band metric subscriptions that would cause the report interval to request 0 (#6245)
- xds/xdsresource: Fix Outlier Detection Config Handling and correctly set xDS Defaults (#6361)
- xds/outlierdetection: Fix Outlier Detection Config Handling by setting defaults in ParseConfig() (#6361)
API Changes
- orca: allow a ServerMetricsProvider to be passed to the ORCA service and ServerOption (#6223)
v1.55.1
: Release 1.55.1
- status: To fix a panic,
status.FromError
now returns an error withcodes.Unknown
when the error implements theGRPCStatus()
method, and callingGRPCStatus()
returnsnil
. (#6374)
v1.55.0
: Release 1.55.0
Behavior Changes
- xds: enable federation support by default (#6151)
- status:
status.Code
andstatus.FromError
handle wrapped errors (#6031 and #6150)- Special Thanks: @psyhatter
New Features
- xds/xdsclient: support
ignore_resource_deletion
server feature as per gRFC A53 (#6035) - security/advancedtls: add min/max TLS version selection options (#6007)
- Special Thanks: @joeljeske
Bug Fixes
- xds: stop routing RPCs to deleted clusters (#6125)
- client: fix race between stream creation and GOAWAY receipt, which could lead to spurious UNAVAILABLE stream errors (#6142)
Performance Improvements
- server: improve stream handler goroutine worker allocation when
NumStreamWorkers
is used (#6004)- Special Thanks: @SaveTheRbtz
v1.54.1
: Release 1.54.1
Bug Fixes
- credentials/alts: revert a change that causes a crash in the handshaker
v1.54.0
: Release 1.54.0
Behavior Changes
- xds: remove support for xDS v2 transport API (#6013)
New Features
- server: expose
SetSendCompressor
API to set send compressor name (#5744)- Special Thanks: @jronak
- xdsclient: include
Node
proto only in the first discovery request message, to improve performance (#6078)
Bug Fixes
- metadata: fix validation logic and properly validate metadata appended via
AppendToOutgoingContext
(#6001)- Special Thanks: @ktalg
- transport: do not close connections when we encounter I/O errors until after all data is consumed (#6110)
- ringhash: ensure addresses are consistently hashed across updates (#6066)
- xds/clusterimpl: fix a bug causing unnecessary closing and re-opening of LRS streams (#6112)
- xds: NACK route configuration if sum of weights of weighted clusters exceeds uint32_max (#6085)
Documentation
- resolver: update
Resolver.Scheme()
docstring to mention requirement of lowercase scheme names (#6014) - resolver: document expected error handling of
UpdateState
errors (#6002)- Special Thanks: @fho
- examples: add example for ORCA load reporting (#6114)
- examples: add an example to illustrate authorization (authz) support (#5920)
- Special Thanks: @KenxinKun
v1.53.0
: Release 1.53.0
API Changes
- balancer: support injection of per-call metadata from LB policies (#5853)
- resolver: remove deprecated field
resolver.Target.Endpoint
and replace withresolver.Target.Endpoint()
(#5852)- Special Thanks: @kylejb
New Features
- xds/ringhash: introduce
GRPC_RING_HASH_CAP
environment variable to override the maximum ring size. (#5884) - rls: propagate headers received in RLS response to backends (#5883)
Bug Fixes
- transport: drain client transport when streamID approaches MaxStreamID (#5889)
- server: after GracefulStop, ensure connections are closed when final RPC completes (#5968)
- server: fix a few issues where grpc server uses RST_STREAM for non-HTTP/2 errors (#5893)
- xdsclient: fix race which can happen when multiple load reporting calls are made at the same time. (#5927)
- rls: fix a data race involving the LRU cache (#5925)
- xds: fix panic involving double close of channel in xDS transport (#5959)
- gcp/observability: update method name validation (#5951)
Documentation
- credentials/oauth: mark
NewOauthAccess
as deprecated (#5882)- Special Thanks: @buzzsurfr
v1.52.3
: Release 1.52.3
Bug Fixes
- Fix user-agent version
v1.52.1
: Release 1.52.1
Bug Fixes
- grpclb: rename grpclbstate package back to state (#5963)
v1.52.0
: Release 1.52.0
New Features
- xdsclient: log node ID with verbosity INFO (#5860)
- ringhash: impose cap on
max_ring_size
to reduce possibility of OOMs (#5801)
Behavior Changes
- client: return an error from
Dial
if an empty target is passed and no custom dialer is present; the ClientConn would otherwise be unable to connect and perform RPCs (#5732)- Special Thanks: @huangchong94
Bug Fixes
- transport (net/http server handler): respond to bad HTTP requests with status 400 (Bad Request) instead of 500 (Internal Server Error). (#5804)
- Special Thanks: @sjbarag
- transport: Fixed closing a closed channel panic in handlePing (#5854)
- server: fix ChainUnaryInterceptor and ChainStreamInterceptor to allow retrying handlers (#5666)
- Special Thanks: @yiminc
- transport: ensure value of
:authority
header matches server name used in TLS handshake when the latter is overridden by the name resolver (#5748)- Special Thanks: @holdno
Documentation
- examples: add an example to illustrate the usage of stats handler (#5657)
- Special Thanks: @Yash-Handa
- examples: add new example to show updating metadata in interceptors (#5788)
- Special Thanks: @richzw
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.