Skip to content

Releases: grpc/grpc-java

v1.53.0

10 Feb 19:54
Compare
Choose a tag to compare

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:
    • When the ads stream is closed only send errors to subscribers that haven't yet gotten results
    • Timers to detect missing resources don’t start until the adsStream is ready (#9745)
    • Call subscriber onError callback when xds client fails to connect to server (#9827)
  • 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 in RetriableStream (#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 a NullPointerException 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 use exports

Acknowledgement

@cpovirk
@niloc132
@stephenh
@olderwei
@pandaapo
@Panxuefeng

v1.45.4

24 Jan 17:59
Compare
Choose a tag to compare

Bug Fixes

  • core: Free unused MessageProducer in RetriableStream (#9853), fixing a memory leak for cancelled RPCs

v1.51.3

18 Jan 18:58
Compare
Choose a tag to compare

Bug Fixes

  • xds: Fix an internal bug in xds resource subscription that might cause xds stream not accepting response update for that resource type entirely. (#9811)

v1.52.1

17 Jan 18:40
Compare
Choose a tag to compare

Bug Fixes

  • xds: Fix an internal bug in xds resource subscription that might cause xds stream not accepting response update for that resource type entirely. (#9810)

v1.45.3

13 Jan 23:25
Compare
Choose a tag to compare

Bug Fixes

  • core: Fix retry causing memory leak for canceled RPCs. (#9360)

v1.52.0

11 Jan 02:45
Compare
Choose a tag to compare

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

v1.51.1

14 Dec 22:27
Compare
Choose a tag to compare

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

19 Nov 00:25
Compare
Choose a tag to compare

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

@TrevorEdwards

v1.50.2

21 Oct 05:23
Compare
Choose a tag to compare

Bug fixes

gcp-observability: Supports period(.) in the service name part of regular expression for a fully-qualified method to accept "package.service"

v1.50.1

21 Oct 05:23
Compare
Choose a tag to compare

gcp-observability: support new configuration defined in grpc-gcp-observability public preview user guide