github grpc/grpc-java v1.52.0

latest releases: v1.67.0, v1.66.0, v1.63.2...
20 months ago

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

@RapperCL
@Smityz
@pandaapo

Don't miss a new grpc-java release

NewReleases is sending notifications on new releases.