chore(deps): update dependency grpc/grpc-go to v1.68.0
This MR contains the following updates:
Package | Update | Change |
---|---|---|
grpc/grpc-go | minor |
1.5.1 -> 1.68.0
|
View the Renovate pipeline for this MR
Release Notes
grpc/grpc-go (grpc/grpc-go)
v1.68.0
: Release 1.68.0
Known Issues
- The recently added
grpc.NewClient
function is incompatible with forward proxies, because it resolves the target hostname on the client instead of passing the hostname to the proxy. This bug has been present since the introduction ofNewClient
. A fix is expected to be a part of grpc-go v1.69. (#7556)
Behavior Changes
- stats/opentelemetry/csm: Get mesh_id local label from "CSM_MESH_ID" environment variable, rather than parsing from bootstrap file (#7740)
- orca (experimental): if using an ORCA listener, it must now be registered only on a READY SubConn, and the listener will automatically be stopped when the connection is lost. (#7663)
- client:
ClientConn.Close()
now closes transports simultaneously and waits for transports to be closed before returning. (#7666) - credentials: TLS credentials created via
NewTLS
that usetls.Config.GetConfigForClient
will now have CipherSuites, supported TLS versions and ALPN configured automatically. These were previously only set for configs not using theGetConfigForClient
option. (#7709)
Bug Fixes
- transport: prevent deadlock in client transport shutdown when writing the GOAWAY frame hangs. (#7662)
- mem: reuse buffers more accurately by using slice capacity instead of length (#7702)
- Special Thanks: @PapaCharlie
- status: Fix regression caused by #6919 in status.Details() causing it to return a wrapped type when getting proto messages generated with protoc-gen-go < v1. (#7724)
Dependencies
- Bump minimum supported Go version to
go1.22.7
. (#7624)
v1.67.1
: Release 1.67.1
Bug Fixes
- transport: Fix a bug causing stream failures due to miscalculation of the flow control window in both clients and servers. (#7667)
- xds/server: Fix xDS Server memory leak. (#7681)
v1.67.0
: Release 1.67.0
Bug Fixes
- ringhash: when used with multiple EDS priorities, fix bug that could prevent a higher priority from recovering from transient failure. (#7364)
- Special Thanks: @atollena
Behavior Changes
- In accordance with RFC 7540, clients and servers will now reject TLS connections that don't support ALPN. This can be disabled by setting the environment variable
GRPC_ENFORCE_ALPN_ENABLED
tofalse
(case insensitive). Please file a bug if you encounter any issues with this behavior. The environment variable to revert this behavior will be removed in an upcoming release. (#7535)
v1.66.3
: Release 1.66.3
Bug Fixes
- transport: Fix a bug causing stream failures due to miscalculation of the flow control window in both clients and servers. (#7667)
- xds/server: Fix xDS Server memory leak. (#7681)
v1.66.2
: Release 1.66.2
Dependencies
- Remove unintentional dependency on the
testing
package (#7579) - Remove unintentional dependency on the
flate
package (#7595)- Special Thanks: @ash2k
Bug Fixes
- client: fix a bug that prevented memory reuse after handling unary RPCs (#7571)
- Special Thanks: @coxley
v1.66.0
: Release 1.66.0
New Features
- metadata: stabilize
ValueFromIncomingContext
(#7368)- Special Thanks: @KarthikReddyPuli
- client: stabilize the
WaitForStateChange
andGetState
methods, which were previously experimental. (#7425) - xds: Implement ADS flow control mechanism (#7458)
- See https://github.com/grpc/grpc/issues/34099 for context.
- balancer/rls: Add metrics for data cache and picker internals (#7484, #7495)
- xds: LRS load reports now include the
total_issued_requests
field. (#7544)
Bug Fixes
- grpc: Clients now return status code INTERNAL instead of UNIMPLEMENTED when the server uses an unsupported compressor. This is consistent with the gRPC compression spec. (#7461)
- Special Thanks: @Gayathri625
- transport: Fix a bug which could result in writes busy looping when the underlying
conn.Write
returns errors (#7394)- Special Thanks: @veshij
- client: fix race that could lead to orphaned connections and associated resources. (#7390)
- xds: use locality from the connected address for load reporting with pick_first (#7378)
- without this fix, if a priority contains multiple localities with pick_first, load was reported for the wrong locality
- client: prevent hanging during ClientConn.Close() when the network is unreachable (#7540)
Performance Improvements
- transport: double buffering is avoided when using an http connect proxy and the target server waits for client to send the first message. (#7424)
- codec: Implement a new
Codec
which uses buffer recycling for encoded message (#7356)- introduce a
mem
package to facilitate buffer reuse (#7432) - Special Thanks: @PapaCharlie
- introduce a
v1.65.1
: Release 1.65.1
Bug Fixes
- xds/server: Fix xDS Server memory leak. (https://github.com/grpc/grpc-go/pull/7664)
v1.65.0
: Release 1.65.0
Dependencies
- Change support policy to cover only the latest TWO releases of Go, matching the policy for Go itself. See #7249 for more information. (#7250)
- Update x/net/http2 to address CVE-2023-45288 (#7282)
Behavior Changes
- credentials/tls: clients and servers will now reject connections that don't support ALPN when environment variable
GRPC_ENFORCE_ALPN_ENABLED
is set to "true" (case insensitive). (#7184)- NOTE: this behavior will become the default in a future release.
- metadata: remove String method from MD to make printing more consistent (#7373)
New Features
- grpc: add
WithMaxCallAttempts
to configure gRPC's retry behavior per-channel. (#7229)- Special Thanks: @imoore76
Bug Fixes
- ringhash: properly apply endpoint weights instead of ignoring them (#7156)
- xds: fix a bug that could cause xds-enabled servers to stop accepting new connections after handshaking errors (#7128)
- Special Thanks: @bozaro
v1.64.1
: Release 1.64.1
Dependencies
- Update x/net/http2 to address CVE-2023-45288 (#7352)
- metadata: remove String method from MD to make printing consistent (#7374)
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.3
: Release 1.63.3
Dependencies
- Update x/net/http2 to address CVE-2023-45288 (#7352)
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.2
Bug Fixes
- xds: fix panic involving double close of channel in xDS transport (#5959)
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
v1.51.0
: Release 1.51.0
Behavior Changes
- xds: NACK EDS resources with duplicate addresses in accordance with a recent spec change (#5715)
- Special Thanks: @erni27
- grpc: restrict status codes that can be generated by the control plane (gRFC A54) (#5653)
New Features
- client: set grpc-accept-encoding header with all registered compressors (#5541)
- Special Thanks: @jronak
- xds/weightedtarget: return a more meaningful error when all child policies are in
TRANSIENT_FAILURE
(#5711) - gcp/observability: add "started rpcs" metric (#5768)
- xds: de-experimentalize the google-c2p-resolver (#5707)
- balancer: add experimental Producer types and methods (#5669)
- orca: provide a way for LB policies to receive OOB load reports (#5669)
Bug Fixes
- go.mod: upgrade x/text dependency to address CVE 2022-32149 (#5769)
- client: fix race that could lead to an incorrect connection state if it was closed immediately after the server's HTTP/2 preface was received (#5714)
- Special Thanks: @fuweid
- xds: ensure sum of the weights of all EDS localities at the same priority level does not exceed uint32 max (#5703)
- Special Thanks: @erni27
- client: fix binary logging bug which logs a server header on a trailers-only response (#5763)
- balancer/priority: fix a bug where unreleased references to removed child policies (and associated state) was causing a memory leak (#5682)
- xds/google-c2p: validate URI schema for no authorities (#5756)
v1.50.1
: Release 1.50.1
New Features
- gcp/observability: support new configuration defined in public preview user guide
v1.50.0
: Release 1.50.0
Behavior Changes
-
client: use proper "@" semantics for connecting to abstract unix sockets. (#5678)
- This is technically a bug fix; the result is that the address was including a trailing NULL byte, which it should not have. This may break users creating the socket in Go by prefixing a NULL instead of an "@", though, so calling it out as a behavior change.
- Special Thanks: @jachor
New Features
- metadata: add experimental
ValueFromIncomingContext
to more efficiently retrieve a single value (#5596)- Special Thanks: @horpto
- stats: provide peer information in
HandleConn
context (#5589)- Special Thanks: @feihu-stripe
- xds: add support for Outlier Detection, enabled by default (#5435, #5673)
Bug Fixes
- client: fix deadlock in transport caused by GOAWAY racing with stream creation (#5652)
- This should only occur with an HTTP/2 server that does not follow best practices of an advisory GOAWAY (not a grpc-go server).
- xds/xdsclient: fix a bug which was causing routes with
cluster_specifier_plugin
set to be NACKed when GRPC_EXPERIMENTAL_XDS_RLS_LB was off (#5670) - xds/xdsclient: NACK cluster resource if
config_source_specifier
inlrs_server
is notself
(#5613) - xds/ringhash: fix a bug which sometimes prevents the LB policy from retrying connection attempts (#5601)
- xds/ringhash: do nothing when asked to exit
IDLE
instead of falling back on the default channel behavior of connecting to all addresses (#5614) - xds/rls: fix a bug which was causing the channel to be stuck in
IDLE
(#5656) - alts: fix a bug which was setting
WaitForReady
on handshaker service RPCs, thereby delaying fallback when required (#5620) - gcp/observability: fix End() to cleanup global state correctly (#5623)
v1.49.0
: Release 1.49.0
New Features
- gcp/observability: add support for Environment Variable
GRPC_CONFIG_OBSERVABILITY_JSON
(#5525) - gcp/observability: add support for custom tags (#5565)
Behavior Changes
- server: reduce log level from Warning to Info for early connection establishment errors (#5524)
- Special Thanks: @jpkrohling
Bug Fixes
- client: fix race in flow control that could lead to unexpected EOF errors (#5494)
- client: fix a race that could cause RPCs to time out instead of failing more quickly with UNAVAILABLE (#5503)
- client & server: fix a panic caused by passing a
nil
stats handler togrpc.WithStatsHandler
orgrpc.StatsHandler
(#5543) - transport/server: fix a race that could cause a stray header to be sent (#5513)
- balancer: give precedence to
IDLE
overTRANSIENT_FAILURE
when aggregating connectivity state (#5473) - xds/xdsclient: request correct resource name when user specifies a new style resource name with empty authority (#5488)
- xds/xdsclient: NACK endpoint resources with zero weight (#5560)
- xds/xdsclient: fix bug that would reset resource version information after ADS stream restart (#5422)
- xds/xdsclient: fix goroutine leaks when load reporting is enabled (#5505)
- xds/ringhash: fix config update processing to recreate ring and picker when min/max ring size changes (#5557)
- xds/ringhash: avoid recreating subChannels when update doesn't change address weight information (#5431)
- xds/priority: fix bug which could cause priority LB to block all traffic after a config update (#5549)
- xds: fix bug when environment variable
GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION
is set to true (#5537)
v1.48.0
: Release 1.48.0
Bug Fixes
- xds/priority: fix bug that could prevent higher priorities from receiving config updates (#5417)
- RLS load balancer: don't propagate the status code returned on control plane RPCs to data plane RPCs (#5400)
New Features
- stats: add support for multiple stats handlers in a single client or server (#5347)
- gcp/observability: add experimental OpenCensus tracing/metrics support (#5372)
- xds: enable aggregate and logical DNS clusters by default (#5380)
- credentials/google (for xds): support xdstp C2P cluster names (#5399)
v1.47.0
: Release 1.47.0
New Features
- xds: add support for RBAC metadata invert matchers (#5345)
Bug Fixes
- client: fix a context leaked if a connection to an address is lost before it is fully established (#5337)
- Special Thanks: @carzil
- client: fix potential panic during RPC retries (#5323)
- xds/client: fix a potential concurrent map read/write in load reporting (#5331)
- client/SubConn: do not recreate addrConn if UpdateAddresses is called with the same addresses (#5373)
- xds/eds: resources containing duplicate localities with the same priority will be rejected (#5303)
- server: return Canceled or DeadlineExceeded status code when writing headers to a stream that is already closed (#5292)
- Special Thanks: @idiamond-stripe
Behavior Changes
- xds/priority: start the init timer when a child switches to Connecting from non-failure states (#5334)
- server: respond with HTTP Status 405 and gRPC status INTERNAL if the method sent to server is not POST (#5364)
Documentation
- server: clarify documentation around setting and sending headers and ServerStream errors (#5302)
v1.46.2
Bug Fixes
- client: fix potential panic during RPC retries (#5323)
- xds: fix leak of deleted CDS resources from CSDS view (#5339)
v1.46.0
: Release 1.46.0
New Features
- server: Support setting
TCP_USER_TIMEOUT
ongrpc.Server
connections usingkeepalive.ServerParameters.Time
(#5219)- Special Thanks: @bonnefoa
- client: perform graceful switching of LB policies in the
ClientConn
by default (#5285) - all: improve logging by including channelz identifier in log messages (#5192)
API Changes
- grpc: delete
WithBalancerName()
API, deprecated over 4 years ago in #1697 (#5232) - balancer: change BuildOptions.ChannelzParentID to an opaque identifier instead of int (#5192)
- Note: the balancer package is labeled as EXPERIMENTAL, and we don't believe users were using this field.
Behavior Changes
- client: change connectivity state to
TransientFailure
inpick_first
LB policy when all addresses are removed (#5274)- This is a minor change that brings grpc-go's behavior in line with the intended behavior and how C and Java behave.
- metadata: add client-side validation of HTTP-invalid metadata before attempting to send (#4886)
- Special Thanks: @Patrick0308
Bug Fixes
- metadata: make a copy of the value slices in FromContext() functions so that modifications won't be made to the original copy (#5267)
- client: handle invalid service configs by applying the default, if applicable (#5238)
- xds: the xds client will now apply a 1 second backoff before recreating ADS or LRS streams (#5280)
Dependencies
- Upgrade security/authorization module dependencies to https://github.com/google/cel-go v0.10.1 and others (#5243)
- Special Thanks: @TristonianJones
v1.45.0
: Release 1.45.0
Bug Fixes
- xds/clusterresolver: pass cluster name to DNS child policy to be used in creds handshake (#5119)
- reflection: support dynamic messages (#5180)
- Special Thanks: @codebutler
Performance Improvements
- wrr: improve randomWRR performance (#5067)
- Special Thanks: @huangchong94
Behavior Changes
- server: convert context errors returned by service handlers to status with the correct status code (
Canceled
orDeadlineExceeded
), instead ofUnknown
(#5156)
New Features
- reflection: add
NewServer(ServerOptions)
for creating a reflection server with advanced customizations (#5197) - xds: support federation (#5128)
- xds/resource: accept Self as LDS's RDS config source and CDS's EDS config source (#5152)
- xds/bootstrap: add plugin system for credentials specified in bootstrap file (#5136)
v1.44.0
: Release 1.44.0
New Features
- balancer: add RLS load balancing policy (#5046)
- xds: add RLS Cluster Specifier Plugin (#5004)
- insecure: remove experimental notice (#5069)
Bug Fixes
- internal/balancergroup: eliminate race in exitIdle (#5012)
- authz: fix regex expression match (#5035)
Documentation
- grpc: minor improvement on WithInsecure() document (#5068)
- Special Thanks: @shitian-ni
- attributes: document that some value types (e.g.
map
s) must implement Equal (#5109) - dialoptions.go: Fix WithBlock godoc (#5073)
- Special Thanks: @sgreene570
- grpclog.DepthLoggerV2: Correct comment: formats like fmt.Println (#5038)
- Special Thanks: @evanj
v1.43.0
: Release 1.43.0
API Changes
- grpc: stabilize
WithConnectParams
DialOption
(#4915)- Special Thanks: @hypnoglow
Behavior Changes
- status: support wrapped errors in
FromContextError
(#4977)- Special Thanks: @bestbeforetoday
- config: remove the environment variable to disable retry support (#4922)
New Features
- balancer: new field
Authority
inBuildOptions
for server name to use in the authentication handshake with a remote load balancer (#4969)
Bug Fixes
- xds/resolver: fix possible
ClientConn
leak upon resolver initialization failure (#4900) - client: fix
nil
panic in rare race conditions with the pick first LB policy (#4971) - xds: improve RPC error messages when xDS connection errors occur (#5032, #5054)
- transport: do not create stream object in the face of illegal stream IDs (#4873)
- Special Thanks: @uds5501
Documentation
- client: clarify errors to indicate whether compressed or uncompressed messages exceeded size limits (#4918)
- Special Thanks: @uds5501
v1.42.0
: Release 1.42.0
Behavior Changes
- grpc: Dial("unix://relative-path") no longer works (#4817)
- use "unix://absolute-path" or "unix:relative-path" instead in accordance with our documentation
- xds/csds: use new field
GenericXdsConfig
instead ofPerXdsConfig
(#4898) - transport: server transport will reject requests with
connection
header (#4803)
New Features
- grpc: support
grpc.WithAuthority
when secure credentials are used (#4817) - creds/google: add NewDefaultCredentialsWithOptions() to support custom per-RPC creds (#4767, #4830)
- authz: create file watcher interceptor for gRPC SDK API (#4760)
- attributes: add
Equal
method (#4855) - resolver: add
AddressMap
andState.BalancerAttributes
(#4855) - resolver: Add
URL
field toTarget
to store parsed dial target (#4817) - grpclb: add a
target_name
field to lb config to specify target when used as a child policy (#4847) - grpclog: support formatting log output as JSON (#4854)
Bug Fixes
- server: add missing conn.Close if the connection dies before reading the HTTP/2 preface (#4837)
- grpclb: recover if addresses are received after an empty server list was received previously (#4879)
- authz: support empty principals and fix rbac authenticated matcher (#4883)
- xds/rds: NACK the RDS response if it contains unknown cluster specifier (#4788)
- xds/priority: do not switch to low priority when high priority is in Idle (e.g. ringhash) (#4889)
Documentation
- grpc: stabilize WithDefaultServiceConfig and improve godoc (#4888)
- status: clarify FromError docstring (#4880)
- examples: add example illustrating the use of unix abstract sockets (#4848)
- examples: update load balancing example to use loadBalancingConfig (#4887)
- doc: promote WithDisableRetry to stable; clarify retry is enabled by default (#4901)
API Changes
- credentials: Mark
TransportCredentials.OverrideServerName
method as deprecated (#4817)
v1.41.1
: Release 1.41.1
- creds/google: add NewDefaultCredentialsWithOptions() to support custom per-RPC creds (#4767, #4830)
- pickfirst: check b.sc before calling Connect (#4971)
v1.41.0
: Release 1.41.0
API Changes
- xds: Promote xds server and creds APIs to stable (#4753)
- balancer: add
ExitIdle
interface to instruct the balancer to attempt to leave the IDLE state by connecting SubConns if appropriate. (#4673)-
NOTICE: This method will be required by the
Balancer
interface in the future
-
NOTICE: This method will be required by the
Behavior Changes
- xds: update xdsclient to keep valid resources from the response even if it has invalid responses and is NACK'ed (see gRFC 260) (#4743)
- balancer: SubConns no longer automatically reconnect after READY; instead they transition to IDLE on connection loss (#4613)
New Features
- xds: add support for RINGHASH lb-policy and affinity (#4741)
- xds: add support for retry policy in VirtualHosts and Routes (#4738)
- stats: support stats for all retry attempts; support transparent retry (#4749)
- authz: create interceptors for gRPC security policy API (#4664)
Bug Fixes
- transport: fix race in transport stream accessing s.recvCompress (#4641)
- client: fix transparent retries when per-RPC credentials are in use (#4785)
- server: fix bug that net.Conn is leaked if the connection is closed (io.EOF) immediately with no traffic (#4633)
- oauth: Allow access to Google API regional endpoints via Google Default Credentials (#4713)
v1.40.1
: Release 1.40.1
- creds/google: add NewDefaultCredentialsWithOptions() to support custom per-RPC creds (#4767, #4830)
v1.40.0
: Release 1.40.0
Behavior Changes
- balancer: client channel no longer connects to idle subchannels that are returned by the pickers; LB policy should call SubConn.Connect instead. (#4579)
- This change is in line with existing documentation stating the balancer must call Connect on idle SubConns in order for them to connect, and is preparation for an upcoming change that transitions SubConns to the idle state when connections are lost. See https://pkg.go.dev/google.golang.org/grpc/balancer#SubConn for more details.
Bug Fixes
- transport: fail RPCs without HTTP status 200 (OK), according to the gRPC spec (#4474)
- Special Thanks: @JNProtzman
- binarylog: fail the
Write()
method if proto marshaling fails (#4582)- Special Thanks: @Jille
- binarylog: exit the flusher goroutine upon closing the
bufferedSink
(#4583)- Special Thanks: @Jille
New Features
- metadata: add Delete method to MD to encapsulate lowercasing (#4549)
- Special Thanks: @konradreiche
- xds/cds: support logical DNS cluster and aggregated cluster (#4594)
- stats: add stats.Begin.IsClientStream and IsServerStream to indicate the type of RPC invoked (#4533)
- Special Thanks: @leviska
Performance Improvements
- server: improve performance when multiple interceptors are used (#4524)
- Special Thanks: @amenzhinsky
v1.39.1
: Release 1.39.1
- server: fix bug that net.Conn is leaked if the connection is closed (io.EOF) immediately with no traffic (#4642)
- transport: fix race in transport stream accessing s.recvCompress (#4627)
v1.39.0
: Release 1.39.0
Behavior Changes
- csds: return empty response if xds client is not set (#4505)
- metadata: convert keys to lowercase in FromContext() (#4416)
New Features
- xds: add GetServiceInfo to GRPCServer (#4507)
- Special Thanks: @amenzhinsky
- xds: add test-only injection of xds config to client and server (#4476)
- server: allow PreparedMsgs to work for server streams (#3480)
- Special Thanks: @eafzali
Performance Improvements
- transport: remove decodeState from client & server to reduce allocations (#4423)
- Special Thanks: @JNProtzman
Bug Fixes
- server: return UNIMPLEMENTED on receipt of malformed method name (#4464)
- xds/rds: use 100 as default weighted cluster totalWeight instead of 0 (#4439)
- Special Thanks: @alpha-baby
- transport: unblock read throttling when controlbuf exits (#4447)
- client: fix status code to return Unavailable for servers shutting down instead of Unknown (#4561)
Documentation
- doc: fix broken benchmark dashboard link in README.md (#4503)
- Special Thanks: @laststem
- example: improve hello world server with starting msg (#4468)
- Special Thanks: @dkkb
- client: Clarify that WaitForReady will block for CONNECTING channels (#4477)
- Special Thanks: @evanj
v1.38.1
: Release 1.38.1
internal/transport: do not mask ConnectionError (#4561)
v1.38.0
: Release 1.38.0
API Changes
- reflection: accept interface instead of grpc.Server struct in Register() (#4340)
- resolver: add error return value from ClientConn.UpdateState (#4270)
Behavior Changes
- client: do not poll name resolver when errors or bad updates are reported (#4270)
- transport: InTapHandle may return RPC status errors; no longer RST_STREAMs (#4365)
New Features
- client: propagate connection error causes to RPC status (#4311, #4316)
- xds: support inline RDS resource from LDS response (#4299)
- xds: server side support is now experimentally available
- server: add ForceServerCodec() to set a custom encoding.Codec on the server (#4205)
- Special Thanks: @ash2k
Performance Improvements
- metadata: reduce memory footprint in FromOutgoingContext (#4360)
- Special Thanks: @irfansharif
Bug Fixes
- xds/balancergroup: fix rare memory leak after closing ClientConn (#4308)
Documentation
v1.37.1
: Release 1.37.1
- client: fix rare panic when shutting down client while receiving the first name resolver update (#4398)
- client: fix leaked addrConn struct when addresses are updated (#4347)
- xds/resolver: prevent panic when two LDS updates are receives without RDS in between (#4327)
v1.37.0
: Release 1.37.0
API Changes
- balancer: Add UpdateAddresses() to balancer.ClientConn interface (#4215)
- NOTICE: balancer.SubConn.UpdateAddresses() is now deprecated and will be REMOVED in gRPC-Go 1.39
Behavior Changes
- balancer/base: keep address attributes for pickers (#4253)
- Special Thanks: @longXboy
New Features
- xds: add support for csds (#4226, #4217, #4243)
- admin: create admin package for conveniently registering standard admin services (#4274)
- xds: add support for HTTP filters (gRFC A39) (#4206, #4221)
- xds: implement fault injection HTTP filter (A33) (#4236)
- xds: enable timeout, circuit breaking, and fault injection by default (#4286)
- xds: implement a priority based load balancer (#4070)
- xds/creds: support all SAN matchers on client-side (#4246)
Bug Fixes
- xds: add env var protection for client-side security (#4247)
- circuit breaking: update picker inline when there's a counter update (#4212)
- server: fail RPCs without POST HTTP method (#4241)
v1.36.1
: Release 1.36.1
- xds: add env var protection for client-side security (#4247)
v1.36.0
: Release 1.36.0
New Features
- xds bootstrap: support config content in env variable (#4153)
Bug Fixes
- encoding/proto: do not panic when types do not match (#4218)
Documentation
- status: document nil error handling of FromError (#4196)
- Special Thanks: @gauravgahlot
v1.35.1
: Release 1.35.1
- encoding/proto: do not panic when types do not match (#4218)
- xds: add env var protection for client-side security (#4247)
v1.35.0
: Release 1.35.0
Behavior Changes
- roundrobin: strip attributes from addresses (#4024)
- balancer: set RPC metadata in address attributes, instead of Metadata field (#4041)
New Features
- support unix-abstract schema (#4079)
- Special Thanks: @resec
- xds: implement experimental RouteAction timeout support (#4116)
- xds: Implement experimental circuit breaking support. (#4050)
Bug Fixes
- xds:
server_features
should be a child ofxds_servers
and not a sibling (#4087) - xds: NACK more invalid RDS responses (#4120)
v1.34.2
: Release 1.34.2
- encoding/proto: do not panic when types do not match (#4218)
- xds: add env var protection for client-side security (#4247)
v1.34.1
: Release 1.34.1
- xds client: Updated v3 type for http connection manager (#4137)
- lrs: use JSON for locality's String representation (#4135)
- eds/lrs: handle nil when LRS is disabled (#4086)
- client: fix "unix" scheme handling for some corner cases (#4021)
v1.34.0
: Release 1.34.0
New Features
- client: implement support for "unix" resolver scheme (#3890)
- rds: allow case_insensitive path matching (#3997)
- credentials/insecure: implement insecure credentials. (#3964)
- lrs: handle multiple clusters in LRS stream (#3935)
Performance Improvements
- encoding/proto: simplify & optimize proto codec (#3958)
Bug Fixes
- internal/transport: fix a bug causing -bin metadata to be incorrectly encoded (#3985)
- Special Thanks: @dntj
- grpclb: consider IDLE SubConns as connecting (#4031)
- grpclb: send custom user-agent (#4011)
- client: use "localhost:port" as authority if target is ":port" (#4017)
- credentials: fix PerRPCCredentials w/RequireTransportSecurity and security levels (#3995)
Documentation
- Documentation: fix outgoing metadata example code (#3979)
- Special Thanks: @aaronjheng
- Remove experimental comment from client interceptors (#3948)
- Special Thanks: @hypnoglow
- Documentation: update keepalive.md to add why (#3993)
v1.33.3
: Release 1.33.3
- xds client: Updated v3 type for http connection manager (#4137)
- lrs: use JSON for locality's String representation (#4135)
- eds/lrs: handle nil when LRS is disabled (#4086)
v1.33.2
: Release 1.33.2
- protobuf: update all generated code to google.golang.org/protobuf (#3932)
- xdsclient: populate error details for NACK (#3975)
- internal/credentials: fix a bug and add one more helper function SPIFFEIDFromCert (#3929)
v1.33.1
API Changes
- connectivity: remove unused, experimental Reporter interface (#3875)
New Features
- xds bootstrap: support insecure and make Creds required (#3881)
- xds: add bootstrap support for certificate providers. (#3901)
- lrs: add a layer for clusters in load store (#3880)
- credentials/xds: implementation of client-side xDS credentials. (#3888)
Bug Fixes
- http2_client: fix reader segfault on PROTOCOL_ERRORs (#3926)
- Special Thanks: @sorah
- internal/transport: handle h2 errcode on header decoding (#3872)
- Special Thanks: @tz70s
- xds: exit from run() goroutine when resolver is closed. (#3882)
- credentials/alts: ClientAuthorizationCheck to case-fold compare of peer SA (#3792)
- Special Thanks: @AntonNep
- service reflection: include transitive closure for a file (#3851)
- stats: include message header in stats.InPayload.WireLength (#3886)
- Special Thanks: @xstephen95x
- binarylog: export Sink (#3879)
- service reflection: include transitive closure for a file (#3851)
v1.32.0
: Release 1.32.0
Dependencies
- Remove Go 1.9 support; assume go1.12 build tag (#3767)
New Features
- grpc: add ServiceRegistrar interface; bump up support package version. (#3816; #3818)
- xds: add LRS balancing policy (#3799)
Bug Fixes
- server: prevent hang in Go HTTP transport in some error cases (#3833)
- server: respond correctly to client headers with END_STREAM flag set (#3803)
- eds: fix priority timeout failure when EDS removes all priorities (#3830)
v1.31.1
: Release 1.31.1
- eds: fix priority timeout failure when EDS removes all priorities (#3839)
v1.31.0
: Release 1.31.0
API Changes
- balancer: remove deprecated type aliases (#3742)
New Features
- The following new xDS functionalities are added in this release (xDS features supported in a given release are documented here):
- service config: add default method config support (#3684)
- Special Thanks: @amenzhinsky
- credentials/sts: PerRPCCreds Implementation (#3696)
- credentials: check and expose SPIFFE ID (#3626)
- protoc-gen-go-grpc: support for proto3 field presence (#3752)
Bug Fixes
- client: set auth header to localhost for unix target (#3730)
Documentation
- doc: mark CustomCodec as deprecated (#3698)
- examples: cleanup README.md (#3738)
- doc: fix references to status methods (#3702)
- Special Thanks: @evanlimanto
v1.30.1
: Release 1.30.1
- eds: fix priority timeout failure when EDS removes all priorities (#3840)
v1.30.0
: Release 1.30.0
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)
Documentation
- examples: add go.mod to make examples a separate module (#3546)
- doc: update README for supported Go versions and travis for tests (#3516)
v1.29.1
: Release 1.29.1
- status: remove Error method accidentally added to *Status (#3561)
v1.29.0
: Release 1.29.0
New Features
Bug Fixes
- xds: update nonce even if the ACK/NACK is not sent on wire (#3497)
- xds: add temporary logging to LRS (#3490)
- wrr: make random wrr thread safe (#3470)
- transport: fix handling of header metadata in serverHandler (#3484)
- Special Thanks: @misberner
- balancer: change roundrobin to accept empty address list (#3491)
- stats: set response compression codec on stats.InHeader and stats.OutHeader (#3390)
- Special Thanks: @MatthewDolan
Documentation
- credentials: Update doc strings for NewClientTLSFromCert et. al. (#3508)
- examples: add example to show how to use the health service (#3381)
- Special Thanks: @mjpitz
v1.28.1
: Release 1.28.1
- xds: update nonce even if the ACK/NACK is not sent on wire (#3497)
- balancer: change roundrobin to accept empty address list (#3491)
- xds: add logging to LRS (#3490)
v1.28.0
: Release 1.28.0
New Features
- This release adds an experimental 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 and cluster route action is supported. More features will be added in future.
- grpclb: support explicit fallback signal (#3351)
- interceptor: new APIs for chaining server interceptors. (#3336)
- Special Thanks: @tukeJonny
- stats: add client side user agent to outgoing header (#3331)
- Special Thanks: @piotrkowalczuk
API Changes
- credentials: deprecate ProtocolInfo.SecurityVersion (#3372)
Bug Fixes
- interop: Build grpclb_fallback/client.go only for linux. (#3375)
- internal: Update service_config.pb.go (#3365)
- internal: Move parseTarget function into internal package and export it. (#3368)
- balancer/base: keep bad SubConns in TransientFailure until Ready (#3366)
- balancer/base: consider an empty address list an error (#3361)
Dependencies
- protobuf: update protoc-gen-go version and generated code (#3345)
v1.27.1
- balancer/base: consider an empty address list an error
v1.27.0
: Release 1.27.0
API Changes
- balancer/resolver: remove temporary backward-compatibility type aliases (#3309)
Behavior Changes
- dns: ignore TXT errors unless GRPC_GO_IGNORE_TXT_ERRORS=false (#3299)
New Features
- client: add interface for ClientConn to be accepted by generated code (#3334)
- client: add WithResolvers option for specifying client-local resolvers (#3320)
- advancedtls: add new module for advanced TLS handshaker (#3187)
- credentials: create API for transport security level information (#3214)
Bug Fixes
- trace: fix getting family for the method (#3216)
- Special Thanks: @andyxning
v1.26.0
: Release 1.26.0
API Changes
- balancer: add V2Picker, ClientConn.UpdateState, SubConnState.ConnectionError (#3186)
- resolver: introduce attributes package and use it for Address and State (#3151)
- resolver: rename Option to Options, leaving type aliases for now (#3175)
Behavior Changes
- dns: disable SRV record lookups unless grpclb is imported (#3149)
- dns: stop polling for updates; use UpdateState API (#3165)
New Features
- stats: attach metadata to In/Out Headers/Trailers (#3169)
- Special Thanks: @MatthewDolan
- xds: Implementation of the CDS LB policy. (#3224)
- xds: Implementation of xds_resolver using LDS/RDS (#3183)
- grpclb: do not send redundant empty load reports to remote LB (#3249)
Performance Improvements
- server.go: combine defers to reduce stack usage (#3208)
- Special Thanks: @adtac
- profiling: add internal changes to support profiling of gRPC (#3158)
- Special Thanks: @adtac
Bug Fixes
- dns: do not call NewServiceConfig when lookups are disabled (#3201)
- client: set grpc-accept-encoding header based on outgoing compressor (#3139)
- Special Thanks: @jiacai2050
- server: Keepalive pings should be sent every [Time] period (#3172)
Documentation
v1.25.1
: Release 1.25.1
- resolver: re-add dns and passthrough packages as references to internal versions
v1.25.0
: Release 1.25.0
API Changes
- resolver: move dns and passthrough to internal (#3116)
New Features
- credentials: add RequestInfo to context passed to GetRequestMetadata (#3057)
- Special Thanks: @shanel-at-google
- resolver: add State fields to support error handling (#2951)
- clientconn: override authority with address's ServerName, if set (#3073)
- Special Thanks: @jpbetz
- server: add ServerOption HeaderTableSize (#2931)
- Special Thanks: @MoZhonghua
- resolver: Add new fields to resolver.BuildOption struct to support dialing a remote name resolver (#3098)
- client: add WithConnectParams to configure connection backoff and timeout (#2960)
Performance Improvements
- Use exact size, if known, to allocate decompression buffer (#3048)
- Special Thanks: @bboreham
Bug Fixes
- interop, examples: use localhost instead of 127.0.0.1 (#3124)
- client: fix race between client-side stream cancellation and compressed server data arriving (#3054)
- grpclb: enter fallback if no balancer addresses are available (#3119)
- client: fix keepalive ping rate (#3102)
- clientconn: fix potential deadlock caused by ResetConnectBackoff (#3051)
Documentation
- doc: add more details to ClientConn (#3096)
- examples: add Unimplemented___Server to all example servers (#3071)
- examples: create an example for enabling and configuring retry (#3028)
- Special Thanks: @yhyddr
v1.24.0
: Release 1.24.0
Dependencies
- internal: update proto library version used to generate pb.go files (#3025)
New Features
- xds: add functionality to read bootstrap file. (#3000)
Performance Improvements
- transport: remove defer in http2Client.getStream (#2980)
- Special Thanks: @dzbarsky
- transport: derive transport context from context.Background (#2930)
- Special Thanks: @JNProtzman
Bug Fixes
- client: consider service config invalid if loadBalancingConfig contains no supported policy (#3034)
- credentials/alts: fix panic detecting GCP environment (#2996)
- Special Thanks: @mwhudson
- internal: fix context leak when stream is not created successfully (#2985)
- grpclb: fix deadlock in grpclb connection cache (#3017)
- server: set and advertise max frame size of 16KB (#3018)
v1.23.1
: Release 1.23.1
-
server: set and advertise max frame size of 16KB (#3018)
-
grpclb: fix deadlock in grpclb connection cache (#3017)
Before the fix, if the timer to remove a SubConn fires at the same time NewSubConn cancels the timer, it caused a mutex leak and deadlock.
v1.23.0
: Release 1.23.0
Security
- transport: block reading frames when too many transport control frames are queued (#2970)
- Addresses CVE-2019-9512 (Ping Flood), CVE-2019-9514 (Reset Flood), and CVE-2019-9515 (Settings Flood).
API Changes
- xds: move code to a root level xds directory (#2950)
Behavior Changes
- client: remove option to send RPCs before HTTP/2 handshake is completed (#2904)
New Features
- grpclb: enable keepalive (#2918)
- balancer: start populating weight by edsbalancer for weighted_round_robin (#2945)
- Special Thanks: @alazarev
- wrr: add EDF implementation of weighted round robin. (#2957)
- Special Thanks: @alazarev
- status: Implement *statusError.Is (#2868)
- Special Thanks: @jsm
Performance Improvements
- server: avoid an unnecessary allocation per-RPC for OK status (#2920)
- Special Thanks: @dzbarsky
- server: avoid call to trace.FromContext and resulting allocations when tracing is disabled (#2926)
- Special Thanks: @dzbarsky
- http2client: remove unnecessary allocations for header fields (#2925)
- Special Thanks: @dzbarsky
- status: avoid allocations when returning an OK status (#2929)
- Special Thanks: @dzbarsky
- server: avoid allocations related to tracking excessive pings (#2923)
- Special Thanks: @dzbarsky
Bug Fixes
- transport: call Unlock in defer to avoid data race (#2953)
- Special Thanks: @lzhfromustc
- client: fix canceled vs deadline exceeded double-check logic (#2906)
- grpclb: recreate SubConns when switching fallback in case credentials change (#2899)
- server: populate WireLength on stats.InPayload for unary RPCs (#2932)
- Special Thanks: @ajwerner
- client: fix race between transport draining and new RPCs (#2919)
- balancer: filter out grpclb addresses if balancer is not grpclb (#2907)
Documentation
- docs: clarify "deprecated" to indicate whether some features may be removed in 1.x (#2900)
v1.22.3
: Release 1.22.3
-
server: set and advertise max frame size of 16KB (#3018)
-
grpclb: fix deadlock in grpclb connection cache (#3017)
Before the fix, if the timer to remove a SubConn fires at the same time NewSubConn cancels the timer, it caused a mutex leak and deadlock.
v1.22.2
: Release 1.22.2
Security
-
transport: block reading frames when too many transport control frames are queued (#2970)
Addresses CVE-2019-9512 (Ping Flood), CVE-2019-9514 (Reset Flood), and CVE-2019-9515 (Settings Flood).
v1.22.1
: Release 1.22.1
- server: populate WireLength on stats.InPayload for unary RPCs
v1.22.0
: Release 1.22.0
New Features
- balancer/resolver: add loadBalancingConfig and pre-parsing support (#2732)
Performance Improvements
- transport: share recv buffers (#2813)
- Remove call to proto.Clone() in http2Server.WriteStatus. (#2842)
Bug Fixes
- balancer: stop using picker from old balancer when switching balancers (#2833)
- server: fix race causing streams to be terminated by GracefulStop (#2857)
- grpclb: only force update picker when cache is used (#2843)
- metadata: write original md before appended md (#2879)
- Special Thanks: @elvizlai
- transport: fix bug leading to hang when invalid headers are received (#2818)
- client: don't reset backoff if updating addresses while in TransientFailure (#2740)
Documentation
- examples: note about ALTS special access permission on GCP (#2846)
v1.21.4
: Release 1.21.4
- server: set and advertise max frame size of 16KB (#3018)
v1.21.3
: Release 1.21.3
Security
-
transport: block reading frames when too many transport control frames are queued (#2970)
Addresses CVE-2019-9512 (Ping Flood), CVE-2019-9514 (Reset Flood), and CVE-2019-9515 (Settings Flood).
v1.21.2
: Release 1.21.2
- server: populate WireLength on stats.InPayload for unary RPCs
v1.21.1
: Release 1.21.1
- transport: fix bug leading to hang when invalid headers are received (#2818)
v1.21.0
: Release 1.21.0
New Features
- balancer: provide parsed target through BuildOptions (#2803)
- grpclb: handle service config and switch to pickfirst (#2719)
- dns: rate limit DNS resolution requests (#2760)
- interceptor: new APIs for chaining client interceptors. (#2696)
- client: return helpful error message when wait-for-ready RPCs fail with timeout (#2777)
- Special Thanks: @yuqitao
Bug Fixes
- transport: fix a race that could lead to memory leaks (#2765)
- client: set balancer name correctly when using grpc.WithBalancerName() (#2778) (#2802)
- Special Thanks: @wjywbs
Documentation
- docs: add note about retrying UNAVAILABLE (#2774)
v1.20.1
: Release 1.20.1
- xds: make local proto generated files #2750
- transport: fix a race that could lead to memory leaks #2765
v1.20.0
: Release 1.20.0
API Changes
- balancer: remove Header from PickOptions; it is also available through context (#2674)
Behavior Changes
- transport: remove RequireHandshakeHybrid support (#2529)
New Features
- credentials: add compute engine creds (#2708)
- grpclb: fallback after init (#2681)
- server: improve error message when an unknown method is invoked. (#2723)
- balancer: add server loads from RPC trailers to DoneInfo (#2641)
- service config: default service config (#2686)
- bar: add ability to update resolver state atomically and pass directly to the balancer (#2693)
- stats: add Trailer to client-side stats.End (#2639)
- Special Thanks: @mklencke
Bug Fixes
- internal: update golang.org/x/lint dependency (#2690)
- syscall: remove logging in init(). (#2734)
- Special Thanks: @yangminzhu
- transport: do not close channel that can lead to panic (#2695)
- Special Thanks: @aanm
- grpclb: drop only when at least one SubConn is ready (#2630)
- stats: add WireLength to stats.InPayload (#2711)
- Special Thanks: @ilylia
- client: restore remote address in traces (#2718)
- server: send RST_STREAM after trailers if client has not half-closed (#2684)
- channelz: cleanup channel registration if Dial fails (#2733)
- client: handle HTTP header parsing error correctly (#2599)
- grpclb: keep drop index unless a new serverlist is received (#2631)
- client: reset backoff to 0 after a connection is established (#2669)
- dns: prefixing txt record lookup with "_grpc_config." (#2691)
- balancer: make sure non-nil done returned by Pick is called (#2688)
v1.19.1
: Release 1.19.1
- client: reset backoff to 0 after a connection is established (#2669)
v1.19.0
: Release 1.19.0
API Changes
- dialOption: export WithContextDialer() (#2629)
- client: deprecate CallCustomCodec and provide new version using encoding.Codec (#2556)
Behavior Changes
- keepalive: apply minimum ping time of 10s to client and 1s to server (#2642)
Bug Fixes
- roundrobin: randomize starting address when rebuilding the picker (#2579)
- client: fix handling of GRPC_GO_REQUIRE_HANDSHAKE=on to not interpret as "hybrid" (#2603)
- Special Thanks: @dntj
- client: minor v1 balancer wrapper fixes (#2511)
- transport: resetTransport connect deadline is across addresses (#2540)
- client: don't allow io.EOF to be passed from balancer to user (#2604)
- grpc: limit reader with maxReceiveMessageSize (#2617)
- transport: fixes established streams leak in loopy writer. (#2610)
Documentation
- examples: add keepalive example (#2637)
- examples: reflection (#2594)
- Fix error message formatting (#2615)
v1.18.1
: Release 1.18.1
- client: reset backoff to 0 after a connection is established (#2669)
v1.18.0
: Release 1.18.0
API Changes
- client: deprecates FailFast & replaces its use by WaitForReady. (#2522)
Behavior Changes
- client: make handshake required 'on' by default, not 'hybrid' (#2565)
- See issue #2406 for more information
New Features
- health: shutdown server to set NOT_SERVING and disallow future updates (#2513)
- channelz: implement GetServer method (#2537)
- Special Thanks: @kazegusuri
- health: resume health server (#2528)
Bug Fixes
- client: report last connection error to RPCs via v1 balancer API (#2508)
- grpclb: re-resolve when the stream to GRPCLB balancer fails (#2502)
- client: do not expose trailer if client cancels RPC before receiving its status (#2554)
- grpclb: filter out grpclb addresses if balancer in use is not grpclb (#2509)
- channelz: respect max_results in listing methods (#2516)
- Special Thanks: @kazegusuri
Documentation
- example: add echo proto (#2505)
- example: load_balancing (#2504)
- example: deadline (#2494)
- example: compression (#2527)
- example: interceptor (#2541)
- example: errors (#2521)
- example: authentication (#2531)
- example: debugging (#2536)
- example: encryption (#2524)
- example: errors (#2534)
- example: metadata (#2500)
- example: wait_for_ready (#2503)
- example: multiplex (#2477)
- example: cancellation (#2525)
- example: name_resolving (#2514)
v1.17.0
: Release 1.17.0
NOTICE
Upcoming connection establishment behavior change in the next release. Please see https://github.com/grpc/grpc-go/issues/2406 for more details.
Dependencies
- Remove support for Go1.6-1.8 (#2428)
New Features
- client: add GRPC_GO_REQUIRE_HANDSHAKE options to control connection behavior (#2464)
- proxy: support basic authentication (#2426)
- client: set TCP_USER_TIMEOUT socket option for linux (#2307)
- Special Thanks: @mikeraimondi
- binarylog: call binary log in Client and Server (#2388)
- health: Client LB channel health checking (#2387)
Performance Improvements
- transport: increase BDP limit to 16MB to improve performance for high latency networks (#2455)
Bug Fixes
- client: ensure resolver operations are handled in order (#2446)
- channelz: returns sockets after startID in GetServerSockets() (#2401)
- client: block RPCs early until the resolver has returned addresses (#2409)
Documentation
- docs: clarify SendMsg/CloseSend usage (#2418)
v1.16.0
: Release 1.16.0
New Features
- health: implement Watch method in server (#2365)
- balancer: add trailer metadata to DoneInfo (#2359)
- balancer: add header metadata to PickOptions (#2376)
- resolver/dns: support custom dns authority (#2265)
- Special Thanks: @elliots
- channelz: channel tracing (#2262)
- credentials: support google default creds (#2315)
Bug Fixes
- server: fix handling of RPC timeouts that overflow int64 nanos (#2379)
- credentials/alts: pass the target name to ALTS handshaker (#2319)
- clientconn: fix race when service config updated while closing (#2371)
- transport: ensure client always closes streams (#2354)
- Special Thanks: @siggy
- stream: never return errors from CloseSend (#2312)
- Check error when calling compressor.Compress (#2274)
- Special Thanks: @JelteF
Additional Notes
Special thanks @fastest963 for going above and beyond in helping us debug hard-to-reproduce transport issues.
v1.15.0
: Release 1.15.0
Dependencies
- Initial go.mod module definition and corresponding Travis/vet.sh changes (#2281)
API Changes
- channelz: enable channelz when importing channelz/service package, delete experimental grpc.RegisterChannelz (#2277)
- health: update pb.go and add watch method (#2263)
- credentials/alts: add ALTS AuthInfoFromPeer API (#2269)
New Features
- client: Add ClientConn.ResetConnectBackoff to force reconnections on demand (#2273)
Bug Fixes
- testdata: get test assets related to package root instead of GOPATH (#2272)
- client: fix FailOnNonTempDialError and add a test for it (#2276)
- Special Thanks: @virtuald
v1.14.0
: Release 1.14.0
API Changes
- transport: move to internal to make room for new, public transport API (#2212)
- grpclb: remove old proto generated code (#2143)
Behavior Changes
- resolver/dns: error if target ends with a colon instead of assuming the default port (#2150)
- Revert stickiness support (#2175)
New Features
- channelz: stage 4 - add security and socket option info with appengine build tags (#2149)
- ClientConn: add Target() returning target string (#2233)
- balancer: add rpc method to PickOptions (#2204)
- Special Thanks: @mfycheng
- transport: set and respect HTTP/2 SETTINGS_MAX_HEADER_LIST_SIZE (#2084)
- client: Implement gRFC A6: configurable client-side retry support (#2111)
- grpc: update dial/server buffer options to support a "disable" setting (#2147)
Bug Fixes
- errors: convert io.ErrUnexpectedEOF to a codes.Internal status error (#2228)
- client: fix race in connecting that leads to broken connection state (#2208)
- resolver/dns: exponential retry when getting empty address list (#2201)
- transport: double-check deadline when processing server cancelation (#2211)
Documentation
- deprecate stream, move documentation to client|server stream (#2198)
- resolver: document that SetDefaultScheme should be called at init time (#2217)
- documentation: clarify SendMsg documentation (#2171)
v1.13.0
: Release 1.13.0
API Changes
- channelz: move APIs to internal except channelz service (#2157)
- grpclb: split grpclb out of top level grpc package (#2107)
New Features
- credentials/alts: Add AuthInfoFromContext utility API (#2062)
- status: Introduce FromContextError convenience function (#2057)
Bug Fixes
- internal/grpcrand: new package for concurrency-safe randoms (#2106)
- codes: fix: marshal/unmarshal a Code to JSON fails (#2116)
- Special Thanks: @fho
- transport: fix race between new stream and window updates (#2144)
- status: handle invalid utf-8 characters (#2109) (#2134)
- grpclb: don't log grpclb server ending connection as error (#2162)
- Special Thanks: @krzysztofdrys
- alts: copy more credentials fields in Clone() (#2119)
- transport: notify controlbuf that transport is gracefully closing to ensure proper cleanup (#2158)
- transport: avoid extra work for keepalive when it's disabled. (#2148)
- transport: account for user configured small io write buffer. (#2092)
- grpc: do not percent encode character tilde (#2139)
- grpclb: backoff for RPC call if init handshake was unsucessful (#2077)
- transport: reduce error logs (#2117)
- resolver: throw an error for non-default DNS authority. (#2067)
- Special Thanks: @jsha
- transport/server: fix race between writing status and header (#2074)
Documentation
- documentation: add stream lifecycle doc to NewStream (#2060)
- clarify CloseSend vs CloseAndRecv; better formatting (#2071)
- documentation: Add initial documentation on concurrency (#2034)
- Special Thanks: @enocom
- Clarify newCCResolverWrapper documentation. (#2100)
- Special Thanks: @gnoack
- documentation: create doc describing grpc-go's log levels and their usages (#2033)
v1.12.2
: Release 1.12.2
- transport: account for user configured small io write buffer. (#2092)
v1.12.1
: Release 1.12.1
- transport/server: fix race between writing status and header (#2074)
v1.12.0
: Release 1.12.0
API Changes
- credentials/alts: Add ServiceOption for server-side ALTS creation (#2009)
Behavior Changes
- http2Client: send reset stream when closing the stream on protocol error (#2030)
New Features
- server: export ServerTransportStreamFromContext for unary interceptors to control headers/trailers (#2019)
- metadata: Add Get, Set, and Append methods to metadata.MD (#1940)
- Special thanks: @zkry
- server: add grpc.Method function for extracting method from context (#1961)
- grpclb: cache SubConns for 10 seconds after it is removed from the backendlist (#1957)
- clientconn: add support for unix network in DialContext (#1883)
- Special thanks: @hexfusion
- client: introduce WithDisableServiceConfig DialOption (#2010)
- stickiness: add stickiness support (#1969)
- channelz: provide channel level info for live program network issue diagnosis/debugging
Performance Improvements
- transport: refactor to reduce lock contention and improve performance (#1962)
Bug Fixes
- createTransport: check for SHUTDOWN before assigning TransientFailure to ac.state (#1979)
- client: ignore "user-agent" if set in outgoing metadata (#2026)
- client: Fix race when using both client-side default CallOptions and per-call CallOptions (#1948)
Documentation
- documentation: mark compresser and decompresser as deprecated (#1971)
- documentation: add OAuth2 doc and example (#2003)
- Special thanks: @enocom
- resolver/dns: Typo in lookupHost failure warning (#1981)
- Special thanks: @keegancsmith
- documentation: mention peer will only be populated after RPC completes (#1982)
- documentation: add instructions for running tests locally (#2006)
- Mark old balancer and naming APIs as deprecated (#1951)
- Fix "deprecated" function godoc comments to match standard formatting (#2027)
- Special thanks: @Chyroc
v1.11.3
: Release 1.11.3
- clientconn: add support for unix network in DialContext. (#1883)
v1.11.2
: Release 1.11.2
- server: add grpc.Method function for extracting method from context (#1961)
v1.11.1
: Release 1.11.1
- client: Fix race when using both client-side default CallOptions and per-call CallOptions (#1948)
v1.11.0
: Release 1.11.0
Dependencies
- travis: add Go 1.10 and run vet there instead of 1.9 (#1913)
API Changes
New Features
- status: Allow external packages to produce status-compatible errors (#1927)
- Special thanks: @johanbrandhorst
- service reflection can lookup enum, enum val, oneof, and field symbols (#1910)
- Special thanks: @jhump
- stats: add BeginTime to stats.End (#1907)
- Special thanks: @btc
- client: Allow interceptors to store alternate transport.ServerStream implementations in context (#1904)
- Special thanks: @jhump
- client: export types implementing CallOptions for access by interceptors (#1902)
- Special thanks: @jhump
- gzip: Add ability to set compression level (#1891)
- Special thanks: @yogeshpandey
- credentials/alts: Add ALTS credentials support (#1865)
- client: Report underlying connection error in RPC error (#1855)
Bug Fixes
- resolver: keep full unparsed target string if scheme in parsed target is not registered (#1943)
- metadata: Fix bug where AppendToOutgoingContext could modify another context's metadata (#1930)
- credentials/alts: fix infinite recursion bug [in custom error type] (#1906)
- Special thanks: @jhump
- transport: fix race that could lead to the server closing a connection due to too many pings (#1905)
- resolver: always fall back to default resolver when target does not follow URI scheme (#1889)
- server: Convert all non-status errors to codes.Unknown (#1881)
- Expunge error codes that shouldn't be returned from library (#1875)
Documentation
- Add documentation and example of adding details to errors (#1915)
- Special thanks: @enocom
- examples: Replace context.Background with context.WithTimeout (#1877)
- clientconn: fix a typo in GetMethodConfig documentation (#1867)
- Special thanks: @zllak
v1.10.1
: Release 1.10.1
- resolver: keep full unparsed target string if scheme in parsed target is not registered (#1943)
v1.10.0
: Release 1.10.0
API Changes
- Revert "Add WithResolverUserOptions for custom resolver build options" (#1839)
Behavior Changes
- streams: Stop cleaning up after orphaned streams (#1854)
- credentials: return Unavailable instead of Internal for per-RPC creds errors (#1776)
New Features
- status: add status.Convert convenience function (#1848)
- transport: support stats.Handler in serverHandlerTransport (#1840)
- encoding: Introduce new method for registering and choosing codecs (#1813)
- metadata: add new method for appending outgoing metadata efficiently (#1794)
Performance Improvements
- metadata: avoid copying headers/trailers in unary RPCs unless requested by CallOptions (#1775)
Bug Fixes
- transport: fix race causing flow control discrepancy when sending messages over server limit (#1859)
- stream: fix bug when using a service config timeout where streams would report "context canceled" before deadline (#1838)
- client: send RST_STREAM on client-side errors to prevent server from blocking (#1823)
- stats: Fix bug causing trailers-only responses to be reported as headers (#1817)
- transport: Fix a data race when headers are received while the stream is being closed (#1814)
- transport: Fix bug preventing stream.Send() from receiving io.EOF after end of stream (#1792)
- client: Fix race when dialing that could lead to disconnects after 20 seconds (#1779)
Documentation
- Fix connection drain error message (#1844)
- gzip: add Name const to avoid typos in usage (#1804)
- Explain target format in DialContext's documentation (#1785)
- Document that all errors from RPCs are status errors (#1782)
v1.9.2
- Fix bug preventing stream.Send() from receiving io.EOF after end of stream (#1792)
- transport: Fix a data race when headers are received while the stream is closing (#1814)
v1.9.1
: Release 1.9.1
- client: Fix race when dialing that could lead to disconnects after 20 seconds (#1779)
v1.9.0
: Release 1.9.0
API Changes
- grpc: fix deprecation comments to conform to standard (#1691)
- Add comments to ClientConn/SubConn interfaces to indicate new methods may be added (#1680)
Behavior Changes
- client: backoff before reconnecting if an HTTP2 server preface was not received (#1648)
New Features
- status: add Code convenience function (#1754)
- Add WithResolverUserOptions for custom resolver build options (#1711)
- Add dial option to set balancer (#1697)
- Switch balancer to grpclb when at least one address is grpclb address (#1692)
- Re-resolve target when one connection becomes TransientFailure (#1679)
Performance Improvements
- protoCodec: avoid buffer allocations if proto.Marshaler/Unmarshaler (#1689)
Bug Fixes
- server: fix race between GracefulStop and new incoming connections (#1745)
- After sending second goaway close conn if idle. (#1736)
- In graceful stop close server transport only after flushing status of the last stream. (#1734)
- client: fix race between server response and stream context cancellation (#1729)
- use the request context with net/http handler (#1696)
- Eliminate data race in ccBalancerWrapper (#1688)
- transport: fix race sending RPC status that could lead to a panic (#1687)
- Fix panics on balancer and resolver updates (#1684)
Documentation
- Fix grpc basics link in route_guide example (#1713)
- Fix misleading default resolver scheme comments (#1703)
v1.8.2
: Release 1.8.2
Release 1.8.1 was accidentally tagged on the master branch and will be deleted. Please update to 1.8.2 instead.
Release notes:
- transport: fix race sending RPC status that could lead to a panic (#1687)
v1.8.0
: Release 1.8.0
Dependencies
- Re-add support for Go1.6 (#1603)
API Changes
- Add functions to ClientConn so it satisfies an interface for generated code (#1599)
Behavior Changes
- ClientHandshake should get the dialing endpoint as the authority (#1607)
New Features
- Switch balancer based on service config info (#1670)
- server: apply deadline to new connections until all handshaking is completed (#1646)
- Implement transparent retries for gRFC A6 (#1597)
- Get method string from stream (#1588)
- Register and use default balancers and resolvers (#1551)
- Make passthrough resolver the default instead of dns (#1606)
- Parse ServiceConfig JSON string (#1515)
Performance Improvements
- Speed-up quota pools. (#1636)
- Acquire all stream related quota and cache it locally since no more than one write can happen in parallel on stream (#1614)
Bug Fixes
- Add proper support for 'identity' encoding type (#1664)
- Remove self-imposed limit on max concurrent streams if the server doesn't impose any. (#1624)
- Fix parseTarget for unix socket address without scheme (#1611)
- Fix connectivity state transitions when dialing (#1596)
- Update go_package declarations (#1593)
- Eliminate race on ac.acbw (#1666)
- addrConn: set ac.state to TransientFailure upon non-temporary errors (#1657)
- Check ac state shutdown before setting it to TransientFailure (#1643)
- Fix settings ack race (#1630)
- Cap max msg size to min(max_int, max_uint32) (#1598)
- Fix max msg size type issues on different arch (#1623)
- Serve() should not return error on Stop() or GracefulStop() (#1485)
Documentation
- Create versioning and release policy document (#1583)
- Corrected documentation on Server.Serve (#1668)
- Update picker doc when returned SubConn is not ready (#1659)
- balancer: reduce chattiness (#1608)
- Update fail fast documentation to remove retry language (#1586)
v1.7.5
: Release 1.7.5
Release 1.7.5
adds a new empty package grpc_lb_v1
to make godep
work with older versions of gRPC. There's no other bug fix or change included.
- Add doc.go to grpc_lb_v1 to work around godep bug (#1747)
v1.7.4
: Release 1.7.4
- transport: fix race sending RPC status that could lead to a panic (#1687)
v1.7.3
: Release 1.7.3
- addrConn: set ac.state to TransientFailure upon non-temporary errors (#1657)
- addrConn: eliminate race on ac.acbw (#1665)
- server: apply deadline to new connections until all handshaking is completed (#1646)
- latency: Listen on localhost:0 instead of :0 in test (#1640)
v1.7.2
: Release 1.7.2
- Check ac state shutdown before setting it to TransientFailure (#1643)
v1.7.1
: Release 1.7.1
- Fix connectivity state transitions when dialing #1596
v1.7.0
: Release 1.7.0
Dependencies
- Remove Go1.6 support (#1492)
API Changes
- Add new Resolver and Balancer APIs (gRFC L9) (#1408)
- New implementation of roundrobin and pickfirst (#1506)
Behavior Changes
- Truncate payload trace string, and turn trace off by default (#1509)
New Features
Performance Improvements
- Use the same hpack encoder on a transport and share it between RPCs. (#1536)
Bug Fixes
- transport: fix racey send to writes channel in WriteStatus (#1546)
- Use Type() method for OAuth tokens instead of accessing TokenType field. (#1537)
- Dedicated goroutine for writing. (#1498)
Documentation
- Update UnknownServiceHandler comment to be clearer about interceptor behavior (#1566)
v1.6.0
: Release 1.6.0
API Changes
- Add and use connectivity package for states (#1430)
- metadata: Remove NewContext and FromContext for gRFC L7 (#1392)
- Remove expiration_interval from grpclb message (#1477)
Features
- Add status details support to server HTTP handler (#1438)
- stats: add methods to allow setting grpc-trace-bin and grpc-tags-bin headers (#1404)
- Expose ConnectivityState of a ClientConn. (#1385)
- DNS resolver (#1300)
Performance
- Put
*gzip.Writer
back to pool (#1441) - Remove defer funtion in recvBufferReader Read method (#1031)
Bug fixes
- When sending a non heads-up goaway close the connection if there are no active streams. (#1474)
- Fix grpclb protos to not cause re-registration of types (#1466)
- transport: fix handling of InTapHandle's returned context (#1461)
- transport: Fix deadlock in client keepalive. (#1460)
- Deduplicate dns record in lookup (#1454)
- Fix host string passed to PerRPCCredentials (#1433)
- Fix a goroutine leak in DialContext (#1424)
- Set peer before sending request (#1423)
- Don't use 64-bit integers with atomic. (#1411)
- Automatic WriteStatus for RecvMsg/SendMsg error on server side (#1409)
- Server should send 2 goaway messages to gracefully shutdown the connection. (#1403)
- Enabling client process multiple GoAways (#1393)
- addrConn: change address to slice of address (#1376)
- Do not create new addrConn when connection error happens (#1369)
- Validate send quota again after acquiring writable channel (#1367)
Documentation
- add comment for the package in benchmark/benchmain/main.go (#1464)
- Add -u to installation command (#1451)
- Update ServerInHandle comments (#1437)
- Add 'experimental' note to ServeHTTP godoc (#1429)
- Use
NewOutgoingContext
in the metadata doc (#1425) - Fix missing and wrong license (#1422)
- Change comment on stats.End.Error (#1418)
- Document Server.ServeHTTP (#1406)
- Use log instead of grpclog in routeguide example (#1395)
- Add doc in default implementation fatal functions on os.Exit() (#1365)
Testing
- Check "x/net/context" with
go vet
like "context" (#1490) - Remove unnecessary function handleStreamSuspension (#1468)
- Call cancel function to avoid ctx leak (#1465)
- go-generate pb.go files and check in Travis to make sure they don't change (#1426)
- Add flags for tls file path (#1419)
- Call cancel on contexts in tests (#1412)
- benchmark: don't stop timer until after workers are done (#1407)
- Assign testdata path to correct variable (#1397)
- Do not call testdata.Path when defining flags (#1394)
- Fix bufconn.Close to not be blocking. (#1377)
- benchmark: add benchmain/main.go to run benchmark with flag set (#1352)
- benchmark: remove multi-layer for loop (#1339)
- Add testdata package and unify testdata to only one dir (#1297)
v1.5.2
: Release 1.5.2
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.