Releases: grpc/grpc-java
v1.53.0
New Features
- googleapis: Allow user set c2p bootstrap config (#9856)
- xds: Add contain and stringMatcher in
RouteConfiguration
(#9845) - core: Add
grpc-previous-rpc-attempts
to the initial response metadata (#9686) - servlet: Implement gRPC server as a Servlet (#8596)
- authz: Implement static authorization server interceptor (#8934)
Examples
- servlet: Add servlet example (#8596)
Bug Fixes
- xds: Update xds error handling logic. Specifically:
- core: Delay retriable stream master listener close until all sub streams are closed. This fixes the call executor lifecycle and prevents potential
RejectedExecutionException
. (#9754) - core: Free unused
MessageProducer
inRetriableStream
(#9853), fixing a Netty buffer memory leak for cancelled RPCs - api: Fail with
NullPointerException
when a Metadata.Marshaller returns null bytes (#9781). This would previously cause aNullPointerException
later during the RPC. Now the return value of the Marshaller is checked immediately, to help find the broken Marshaller
Behavior Changes
- xds: Disallow duplicate addresses in the RingHashLB. (#9776)
- xds: EDS weight sums are allowed up to max unsigned int (was max signed int) (#9765)
- xds: Drop xds v2 support (#9760)
Dependencies
- JUnit upgraded to 4.13.2
- bazel: Dropped support for Bazel 4. We track the two most recent major versions of Bazel, Bazel 5 and 6. Bazel 4 may still work, but we are no longer testing it
- bazel: Include Tomcat annotations dependency for
@Generated
as used by autovalue (#9762). Necessary for building xds and rls on Java 9+ - bazel: Export deps from Maven Central-specific stand-in targets (#9780). Some Maven Central artifacts are a combination of multiple Bazel targets, like grpc-core is composed of //core:inprocess, //core:internal, //core:util, //api. There is a “//core:core_maven” target used by maven_install that uses the other targets. Previously the target used
runtime_deps
to discourage their use by Bazel users, but that could cause compilation failures from lack of hjars. These targets now useexports
Acknowledgement
@cpovirk
@niloc132
@stephenh
@olderwei
@pandaapo
@Panxuefeng
v1.45.4
v1.51.3
v1.52.1
v1.45.3
v1.52.0
gRPC Java 1.52.0 Release Notes
grpc-xds starting with 1.51.0 had a regression where resources might stop receiving updates. The trigger could happen hours or days after the binary had started. xDS users should avoid this release and use 1.50.x until patch releases with the fix are available. #9809
API Changes
- Fix CallOptions to be properly
@Immutable
(#9689) - binder: Promote out of experimental status (#9669). Much of the API is now stable
New Features
- xds: Support localities in multiple priorities (#9683)
- xds: Log xDS node ID with verbosity INFO when environment variable GRPC_LOG_XDS_NODE_ID=true (#9731)
Examples
- Add examples for name resolver and load balancer (#9700)
- Swap to ChannelCredentials/ServerCredentials API, as it is preferred
Bug Fixes
- xds:Fix ConcurrentModificationException in PriorityLoadBalancer (#9728)
- ManagedChannelImpl.SubchannelImpl fix args check to avoid NPE (#9651)
- okhttp: Add missing server support for TLS ClientAuth (#9711)
- binder: Ensure the security interceptor is always closest to the actual transport (#9716)
- bazel: Include @generated dep for autovalue. This fixes builds of xds and rls using Java 9+
- xds: Nack xds response when weighted cluster total weight sums zero (#9738)
- core: Fix a bug about a retriable stream lifecycle. It stops using the call executor resource in a retriable stream when the client call is closed, thus preventing potential channel panics. (#9626)
Behavior Changes
- binder: Set default idle timeout to 60 seconds, and enable "strict lifecycle management". (#9486)
- xds: Limit ring hash max size to 4K instead of 8M (#9709).
RingHashOptions.setRingSizeCap()
can increase the limit - binder: Set default idle timeout to 60 seconds, and add
BinderChannelBuilder.strictLifecycleManagement()
which disables idle timeout and prevents it from being changed (#9486). Disabling idle timeout can be useful to find bugs in applications that fail to promptly shut down the channel and are particularly sensitive to keeping Binder instances alive. - bazel: Replace ctx.host_configuration.host_path_separator with ctx.configuration.host_path_separator (#9742). This changes no behavior today, but improves future compatibility with newer versions of Bazel
- xds: Refactor internal logics about LDS and CDS resource handling. It may cause minor log line changes about corresponding RDS and EDS subscriber event notification, but it should not change xds name resolution and LB behavior. (#9724)
Dependencies
Acknowledgement
v1.51.1
grpc-xds starting with 1.51.0 had a regression where resources might stop receiving updates. The trigger could happen hours or days after the binary had started. xDS users should avoid this release and use 1.50.x until patch releases with the fix are available. #9809
Bug Fixes
- xds: Fix ConcurrentModificationException in PriorityLoadBalancer. (#9744)
v1.51.0
grpc-xds starting with 1.51.0 had a regression where resources might stop receiving updates. The trigger could happen hours or days after the binary had started. xDS users should avoid this release and use 1.50.x until patch releases with the fix are available. #9809
Bug Fixes
- grpclb: Fix a debug logging message which incorrectly logged loadbalancer addresses under backend addresses. (#9602)
New Features
- okhttp: okhttp server now supports maxConnectionAge and maxConnectionAgeGrace configuration for improved connection management. (#9649)
Behavior Changes
- netty: switch default cumulation strategy from MERGE to ADAPTIVE. When accumulating incoming network data, Adaptive cumulator dynamically switches between MERGE and COMPOSE strategies to minimize the amount of copying while also limiting per-buffer overhead. (#9558)
Acknowledgements
v1.50.2
Bug fixes
gcp-observability: Supports period(.) in the service name part of regular expression for a fully-qualified method to accept "package.service"