Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grpc-java monorepo to v1.64.0 #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 17, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.grpc:grpc-auth 1.2.0 -> 1.64.0 age adoption passing confidence
io.grpc:grpc-stub 1.2.0 -> 1.64.0 age adoption passing confidence
io.grpc:grpc-protobuf-lite 1.2.0 -> 1.64.0 age adoption passing confidence
io.grpc:grpc-okhttp 1.2.0 -> 1.64.0 age adoption passing confidence
io.grpc:protoc-gen-grpc-java 1.2.0 -> 1.64.0 age adoption passing confidence

Release Notes

grpc/grpc-java (io.grpc:grpc-auth)

v1.64.0

API Changes
  • compiler: the option jakarta_omit was renamed @generated=omit (#​11086) (8a21afc)
New Features
  • New API LoadBalancer.getChannelTarget() (4561bb5)
  • opentelemetry: Publish new module grpc-opentelemetry (5ba1a55). The feature is still missing documentation and an example. It only supports metrics; tracing and logs will be future enhancements. See gRFC A66
  • bazel: Add support for bzlmod (#​11046) (d1890c0)
  • bazel: Replace usages of the old compatibility maven targets with @maven targets (0064991)
  • okhttp: Support serverBuilder.maxConcurrentCallsPerConnection (Fixes #​11062). (#​11063) (8050723)
  • xds: Experimental metrics recording in WRR LB (06df25b, 35a171b, 2897b39), to be exported by grpc-opentelemetry if explicitly enabled in GrpcOpenTelemetry. See gRFC A78
  • rls: Experimental metrics recording in RLS LB (a9fb272, a1d1932, 8133318), to be exported by grpc-opentelemetry if explicitly enabled in GrpcOpenTelemetry
Improvements
  • examples: support bazel build for retry policy example (58de563)
  • netty: Allow deframer errors to close stream with a status code, as long as headers have not yet been sent (e036b1b). This will greatly improve the debuggability of certain server errors in particular cases. Instead of the client seeing “CANCELLED: RST_STREAM closed stream. HTTP/2 error code: CANCEL”, they could see “RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 6144592
  • netty: Improve handling of unexpected write queue promise failures (#​11016)
  • servlet: Avoid unnecessary FINEST hex string conversion by checking log level. Fixes #​11031. (f7ee5f3)
  • StatusException/StatusRuntimeException hide stack trace in a simpler way (#​11064) (e36f099)
  • util: Status desc for outlier detection ejection (#​11036) (10cb4a3)
  • binder: Helper class to allow in process servers to use peer uids in test (#​11014) (537dbe8)
  • Add load() statements for the Bazel builtin top-level java symbols (#​11105) (add8c37)
  • Add StatusProto.toStatusException overload to accept Throwable (#​11083) (5c9b492)
Bug fixes
  • Fix retry race condition that can lead to double decrementing inFlightSubStreams and so miss calling closed (#​11026) (bdb6230)
  • Change defaults to use the older PickFirstLoadBalancer and disable Happy Eyeballs. This disables a performance optimization added in v1.63. (#​11120) We have had a report that the new implementation can trigger a NullPointerException
  • core: Transition to CONNECTING immediately when exiting idle (2c5f0c2). Previously the visible state change from channel.getState() was delayed until the name resolver returned results. This had no impact to RPC behavior
  • xds: Specify a locale for upper/lower case conversions (e630593)
  • rls: Synchronization fixes in CachingRlsLbClient (6e97b18). These races had not been witnessed in practice
  • rls: Guarantee backoff will update RLS picker (f9b6e5f). This fixes a regression introduced by 6e97b18 that could hang RPCs instead of using fallback, but fixes a pre-existing bug that could greatly delay RPCs from using fallback.
  • rls: Fix time handling in CachingRlsLbClient (da619e2). This could have caused backoff entries to improperly be considered expired
  • xds: Properly disable the default endpoint identification algorithm with XdsChannelCredentials (097a46b). The credential does its own verification and the default needs to be disabled for SPIFFE
  • netty: Release SendGrpcFrameCommand when stream is missing (#​11116) (fb9a108)
  • okhttp: Remove finished stream even if a pending stream was started (d21fe32)
Dependencies
  • cronet: Update Cronet to latest release + Move to Stable Cronet APIs. (5a8da19)
  • cronet: @​javadoc update android permission MODIFY_NETWORK_ACCOUNTING (deprecated) => UPDATE_DEVICE_STATS (c703a1e)
  • cronet: Update to Java-8 API's and tighten the scopes (163efa3)
  • cronet: Update to StandardCharsets and assertNotNull API's (77e59b2)
Acknowledgements

@​panchenko
@​Ashok-Varma
@​benjaminp
@​AutomatedTester
@​hypnoce
@​keith
@​laglangyue
@​rostik404
@​ryanpbrewster
@​abtom
@​hvadehra
@​rtadepalli

v1.63.1

Bug fixes
  • netty: Release SendGrpcFrameCommand when stream is missing (#​11116) (fb9a108)
  • Change defaults to use the older PickFirstLoadBalancer and disable Happy Eyeballs. This disables a performance optimization added in v1.63.0 (#​11120) We have had a report that the new implementation can trigger a NullPointerException

v1.63.0

API Changes
New Features

xds, dual stack, happy eyeballs: Support dual stack in xds, change list includes:

  • Enable new PickFirst lb policy by default. The new PickFirst implements subchannel picking logic. (#​11002) (8a9ce99)
  • EDS resource now supports additional addresses (#​11011) (38f968f)
  • Change address based outlier detection to endpoint based (#​10939) (c61fe69)
  • Enable Happy Eyeballs by default (#​11022) (51f811d)
Improvements
  • rls: Adding extra debug logs (#​10902) (eba699a)
  • binder: Add missing Android API annotations (#​10841) (ce2adcc)
  • core: Provide DEADLINE_EXCEEDED insights for context deadline (3abab95). When the deadline triggered and the deadline was set on the RPC via the stub or CallOptions, gRPC would gather additional debugging information to help understand where the RPC took so long. However if the deadline came from io.grpc.Context the error was simply “context timed out.” Now the debugging information is provided in both cases
  • examples: Fix file paths in debug example README (e19f1f1)
  • compiler: implement ability to skip generation of javax annotation (#​10927) (0d39c2c). Pass the option jakarta_omit to protoc-gen-grpc-java when generating code
  • xds: Get rid of xDS v2 proto dependencies (#​10968) (feab4e5). grpc-xds jar size has decreased by 35%.
  • xds: Support retrieving names from wrapped resource containers (#​10975) (867e469)
  • netty: improve server handling of writes to reset streams (#​10258) (a68399a)
  • api: Fix a typo in ServerInterceptor JavaDoc (#​10990) (0b82f01)
  • servlet: Check log fine level before hex string conversion. (#​11038)
  • auth: Specify a locale for upper/lower case conversions (1.63.x backport) #​11050
Bug Fixes
  • xds: Copy data in least request to avoid picker data race (f4cc166). This fixes a possible regression introduced in 1.60.0. Auditing the buggy code showed it unlikely to cause problems in practice, but that was more by happenstance than by design
  • xds: Fix data race in the xds client that contacts the control plane (d7628a3)
  • rls: Fix a local and remote race (aa90768). The remote race could cause an RPC to hang until its deadline. It had been seen in practice when the client was severely CPU under-provisioned
  • xds: Fix xdsNameResolver virtual host lookup authority with xdstp style names. Use service authority instead of ldsResourceName (#​10960) (78b3972)
  • core: Fix retry race condition that can lead to double decrementing inFlightSubStreams and so miss calling closed (#​11026) (#​11033)
  • okhttp: Fix OkHTTP client transport leak (#​11060)
  • xds: Use empty string when disabling server hostname verification ( #​11058)
Dependencies
  • Upgraded google-auth-library-java to 1.22.0
Acknowledgement

Alex Panchenko
Benjamin Peterson
David Ankin
Prashanth Swaminathan
Touko Vainio-Kaila

v1.62.2

gRPC Java 1.62.2 Release Notes

Note that this is the initial 1.62.x release

API Changes
  • services: Remove io.grpc.services.BinaryLogs, which was deprecated since 2021. io.grpc.protobuf.services.BinaryLogs should be used instead (#​10832).
  • Allow users outside of io.grpc.xds package to create custom xDS resources (#​10834) (6d96e65)
New Features
  • api:Add ClientTransportFilter. Similarly to ServerTransportFilter, this will provide an observability hook and it allows direct modification of the transport's attributes. (#​10646)
Improvements
  • java_grpc_library.bzl: Add support for Auto Exec Groups (cb03bd2). This is mostly a behind-the-scenes change to adjust to the newer way Bazel operates
  • java_grpc_library.bzl: Support runfiles for protoc and the plugin (65a6b3b). Neither binary uses runfiles, but the task will be ready if they need to in the future
  • xds: Add EC key support for XdsChannelCredentials/XdsServerCredentials (100d5a5)
  • binder:Change log level from WARNING to FINER for expected exception during close with error, to reduce log spamming (#​10899) (7ba0718)
Bug Fixes
  • xds: Fix a bug in WeightedRoundRobinLoadBalancer policy that could raise NullPointerException and further cause channel panic when picking a subchannel. This bug can only be triggered when connection can not be established and the channel reports TRANSIENT_FAILURE state. (#​10868)
Dependencies
  • The protoc plugin no longer supports macOS Big Sur (macOS 11). Binaries are now built using Monterey (macOS 12)
Acknowledgements

v1.61.1

Bug Fixes

xds: Fix a bug in WeightedRoundRobinLoadBalancer policy that could raise NullPointerException and further cause channel panic when picking a subchannel. This bug can only be triggered when connection can not be established and the channel reports TRANSIENT_FAILURE state. (#​10868)

v1.61.0

API Changes
  • Remove unused experimental API ManagedChannelBuilder.enableFullStreamDecompression (#​10744)
  • api: Deprecate LoadBalancer.EMPTY_PICKER added in 1.58.0 in favor of FixedResultPicker (860b5cb)
New Features
  • binder: Experimental support for asynchronous security policies (#​10566)
Improvements
  • core: reduce CompositeReadableBuffer allocation (#​3279)
  • core: Improve error message clarity when a channel leak is detected (201893f)
  • util: use shared index across round_robin pickers (dca89b2). This makes its implementation more similar to weighted_round_robin.
  • xds: Implement ADS stream flow control mechanism (#​10674). This limits the maximum memory consumed if the control plane sends updates more rapidly than they can be processed.
Bug Fixes
  • core: Check outbound maximum message size for the compressed size in addition to the already-checked uncompressed size (#​10739). Fixed the status code to be RESOURCE_EXHAUSTED instead of UNKNOWN.
  • util: Fix NPE when multiple addresses are in an address group for petiole load balancer policies (#​10769)
  • util: Disable publishing of fixtures (8ac43dd). The Gradle test fixtures are for use by grpc-java's internal tests.
  • okhttp: Ignore known conscrypt socket close issue (#​10812). This stops an exception from being thrown when a known Conscrypt synchronization issue happens.
Dependencies
  • Drop support for Bazel 5 (55a9c01). Bazel 7 is available, and Protobuf has already dropped support for Bazel 5.
  • Change many compile deps to runtime deps (d6830d7). This reduces the transitive classes "leaked" into the compile classpath. In particular, grpc-core (io.grpc.internal) will be less frequently included transitively at compile time.
  • Upgrade dependencies (c985797)
    • Protobuf to 3.25.1
    • auto-value-annotations to 1.10.4
    • error_prone_annotations to 2.23.0
    • proto-google-common-protos to 2.29.0
    • google-cloud-logging to 3.15.14
    • guava to 32.1.3-android
    • okio to 3.4.0
Acknowledgements

v1.60.2

Bug Fixes

xds: Fix a bug in WeightedRoundRobinLoadBalancer policy that could raise NullPointerException and further cause channel panic when picking a subchannel. This bug can only be triggered when connection can not be established and the channel reports TRANSIENT_FAILURE state. (#​10868)

v1.60.1

Bug Fixes

  • util: Fix NPE when multiple addresses in an address group for petiole load balancer policies (#​10770)

v1.60.0

API Changes
  • api: Stabilize ForwardingServerBuilder, ForwardingChannelBuilder2, and ForwardingChannelBuilder. Note that ForwardingChannelBuilder is stabilized (no changes will be made to it), but immediately deprecated in favor of ForwardingChannelBuilder2. (#​10586)
  • api: Deprecate ForwardingChannelBuilder.delegate(). De facto this deprecates the class itself, since all classes extending ForwardingChannelBuilder implement the delegate() method. See javadoc for details (#​10587)
  • api: Changed recently-introduced LoadBalancer.acceptResolvedAddresses() to return Status instead of boolean (#​10636). This is part of continued work to align the LB API cross-language and API stabilization
  • stub: Deprecate StreamObservers (#​10654)
  • alts: AltsChannelBuilder now extends ForwardingChannelBuilder2 (#​10587)
  • protobuf: Stabilize ProtoUtils.metadataMarshaller() (#​10628)
  • protobuf-lite: ProtoLiteUtils experimental comment (#​10627)
Behavior Changes
  • core: ManagedChannels now check the address types provided by the nameResolver (for the given target) with the address types supported by the channel transport and generate an error in case of mismatch. That dramatically improves the error message when an issue occurs
  • core: When a server stream is closed due to user's code (an uncaught exception in halfClosed, messagesAvailable, onReady callback of a ServerStream's listener), the Status.UNKNOWN returned to the client will have Application error processing RPC description. Previously the description was empty. This is helpful to differentiate between server errors originated in user application, gRPC library, or even those injected by a proxy. (#​10643)
  • xds: Log ORCA UNIMPLEMENTED error to subchannel logger. This removes them from the normal application logs, reducing log spam
Improvements
  • Change the underlying implementations of RingHash, RoundRobin, WeightedRoundRobin and LeastRequest load balancers to utilize the pick first load balancer rather than directly manage subchannels. This should only be noticeable if it introduced a bug
  • core: Avoid flushing headers when the server returns a single response (#​9314). This is a performance optimization to reduce the number of packets for non-streaming responses
  • util: Make grpc-core an implementation dependency. This will prevent the io.grpc.internal classes in grpc-core from being visible during compilation when depending on just grpc-util
  • netty: Implement Http2Headers.isEmpty(). This fixes compatibility with Netty 4.1.101.Final.
  • netty: Add NettyServerBuilder.maxRstFramesPerWindow(). This can be used to limit impact of Rapid Reset
  • netty: Disable huffman coding in headers (#​10563). Huffman coding provides modest compression for relatively high CPU usage, especially within a data center. Rely just on the HPACK static and dynamic tables for compression, for higher performance. This only impacts header values 512 bytes or longer, as Netty already disabled Huffman for smaller values
  • alts: Improve handshake failure error message by propagating original exception (#​10644)
Bug Fixes
  • util: Remove shutdown subchannels from OD tracking (#​10683). This could have caused a memory leak on a long-lived channel. But we don’t think it could be triggered with our built-in load balancing policies.
Dependencies
  • Bump Netty to 4.1.100.Final
Acknowledgements

@​anthonyjpratti
@​fedorka
@​jpd236
@​mateusazis
@​pkoenig10
@​yannickepstein
@​amirhadadi

v1.59.1

  • netty: Implement Http2Headers.isEmpty(). This fixes compatibility with Netty 4.1.101.Final.
  • netty: Add NettyServerBuilder.maxRstFramesPerWindow(). This can be used to limit impact of Rapid Reset
  • xds: Log ORCA UNIMPLEMENTED error to subchannel logger. This removes them from the normal application logs, reducing log spam

v1.59.0

gRPC Java 1.59.0 Release Notes

PLANNED ABI BREAKAGE!

This breaks the ABI of the @ExperimentalApi classes listed below.
This does not impact source code (API); it only impacts code compiled with a different version of gRPC than it runs with (ABI).

Users that recompiled their code using grpc-java v1.36.0 (released on Feb 23, 2021) and later, ARE NOT AFFECTED.
Users that compiled their source using grpc-java earlier than v1.36.0 may need to recompile when upgrading to grpc-java v1.59.0.

See details in #​10406.

Affected classes

Class io.grpc.internal.AbstractManagedChannelImplBuilder is deleted, and no longer in the class hierarchy of the channel builders:

  • io.grpc.netty.NettyChannelBuilder
  • io.grpc.okhttp.OkhttpChannelBuilder
  • io.grpc.cronet.CronetChannelBuilder

Class io.grpc.internal.AbstractServerImplBuilder is deleted, and no longer in the class hierarchy of the server builders:

  • io.grpc.netty.NettyServerBuilder
  • io.grpc.inprocess.InProcessServerBuilder

API Changes
  • core: AbstractManagedChannelImplBuilder and AbstractServerImplBuilder are removed (#​10530). This is ABI-breaking, see the warning above. (#​10406)
  • core: Removed .class file hack previously introduced in v1.36.0 to ease removal of internal ABIs. (#​10406)
  • api: Add ForwardingChannelBuilder2, an ABI-safe version of ForwardingChannelBuilder, which will be deprecated in the following release. (#​10585, #​10406)
  • api: Add LoadBalancer.FixedResultPicker convenience class for load balancer implementations. It is a replacement for ErrorPicker and EMPTY_PICKER added in 1.58.0
  • testing: Stabilize TestMethodDescriptors (#​10530)
Behavior Changes
  • core: de-expermentalize pick first config parsing (#​10531)
  • netty: Respect -Dio.netty.allocator.type=unpooled when getting Netty Allocator instead of ignoring it (#​10543)
  • netty: Use UNAVAILABLE for connections closed while writing. Previously this would result in UNKNOWN
  • binder: Enable indirect addressing using s. (#​10550)
Improvements
  • core: only use reflection to resolve InternalCensusStatsAccessor once instead of once per channel
  • core: enhance error message in the case of DEADLINE_EXCEEDED to indicate name resolution delay.
  • netty: When creating a connection, use java.util.logging formatting instead of String.format to avoid work when not logged
  • netty: Touch ByteBuf when message framing has been decoded. If the buffer is leaked, this helps narrow down the source of reference counting bug
  • java_grpc_library.bzl: Disable Automatic Exec Groups inside grpc libraries (#​10514). This improves compatibility with future Bazel versions while retaining Bazel 5.x compatibility
Bug Fixes
  • netty: Avoid NettyAdaptiveCumulator incorrectly releasing its input ByteBuf twice when reading messages under certain error conditions (#​10537)
  • xds: Add fix for xdstp replacement for percent-encoded authorities (#​10571)
Documentation
  • API documentation (Javadoc) for Server and Channel builders now correctly displays inherited methods and the class hierarchy. (#​10406)
  • examples: add an example for OAuth (#​10560)
Dependencies
  • Upgrade Netty to 4.1.97.Final
Acknowledgements

John Cormie (@​jdcormie)
Stephane Landelle (@​slandelle)
@​kotlaja

v1.58.1

  • xds: PickFirst was not receiving its configuration so it used the default configuration which meant that randomize was ignored.

v1.58.0

API Changes
  • xds: Add missing ExperimentalApi to OrcaServiceImpl
  • stub: Removed deprecated methods attachHeaders and captureMetadata from MetadataUtils (#​10443)
  • api: Stabilized ServerCall.getAuthority() by removing experimental annotation (#​10498)
  • api: Stabilized ServerCall#setMessageCompression() and PartialForwardingServerCall#setMessageCompression() (#​10393)
  • protobuf: Stabilize ProtoUtils.setExtensionRegistry() and ProtoLiteUtils.setExtensionRegistry() (#​10392)
  • testing: Stabilize GrpcCleanupRule, GrpcServerRule (#​10494)
  • api: Stabilized ServerBuilder.handshakeTimeout (#​10499)
  • api: Removed Context.Storage deprecated method attach(), made doAttach() abstract (#​10379)
  • api: Stabilized methodDescriptor getRequestMarshaller, getResponseMarshaller (#​10495)
  • api, xds: Enabled pick first by default (GRPC_EXPERIMENTAL_PICKFIRST_LB_CONFIG env variable is true by default now) for xds leaf LB policy (#​10475)
Behavior Changes
  • rls: Have RLS's LRU Cache rely on cleanup process to remove expired entries (#​10400)
  • core, inprocess, util: 2 new artifacts grpc-inprocess and grpc-util have been created by moving code from grpc-core to facilitate Java module support (#​10362, #​10390)
  • all: Automatic module name support added to all artifacts (#​10413)
  • xds: Encode the service authority in XdsNameResolver (#​10207)
  • stub: When using BlockingServerStream, in some cases the request will be sent to the server when the RPC is created where previously it always waited until next() or hasNext() had been called to send the request.
Improvements
  • api: In Javadoc, link to gRFCs A8/A9 for keepalive and related settings
  • okhttp: Enable support for being returned by Grpc.newServerBuilderForPort(). At present, Netty always has higher priority than OkHttp, if they are both available, because ServerBuilder.forPort() is not supported in the OkHttp transport but is supported in the Netty transport
  • bazel: Enhance java_grpc_library.bzl to allow toolchain to use annotation processors
  • examples: Add pre-serialized-message example (#​10112)
  • examples: Android examples to use AGP 7.4.0 (#​10497)
Bug Fixes
  • Fix compatibility with Java 8. This fixes the NoSuchMethodError for ByteBuffer methods present in 1.57.0 (#​10441)
  • xds: Remove debug assert in WeightedRoundRobinLoadBalancer. The assert was to detect breakages in the static stride algorithm causing too much looping. However, with multithreading it is possible to trigger even in legitimate scenarios (#​10437)
  • util: Outlier detection tracer delegation (#​10459)
  • Handle header with errors and endStream = true. Was filling logs with NPEs. (#​10384)
  • core: Fix a retriablestream bug that may cause deadlock with OkHttp (#​10386)
  • stub: Remove ThreadlessExecutor from BlockingServerStream to eliminate the problem where sometimes the iterator’s next() method would get stuck. (#​10496)
  • compiler: Fix aarch_64 macs not being able to build the compiler module. (#​10516)
  • okhttp: Use padded length for flow control in both client and server transport (#​10422)
  • xds: Fix locality logging information in bootstrap (#​10423)
Dependencies
  • Upgraded protobuf to 3.24.0
  • android: Min SDK level to 21 (#​10505)
  • Various dependency upgrades (#​10359):
    androidx.core:core 1.10.0 -> 1.10.1
    com.google.api.grpc:proto-google-common-protos 2.17.0 -> 2.22.0
    com.google.cloud:google-cloud-logging 3.14.5 -> 3.15.5
    com.google.errorprone:error_prone_annotations 2.18.0 -> 2.20.0
    com.squareup.okio:okio 1.17.5 -> 2.10.0
Acknowledgements

Halvard Skogsrud

v1.57.2

Bug Fixes

v1.57.1

Bug fixes

  • Fix compatibility with Java 8. This fixes the NoSuchMethodError for ByteBuffer methods present in 1.57.0 (#​10441)
  • xds: Remove debug assert in WeightedRoundRobinLoadBalancer. The assert was to detect breakages in the static stride algorithm causing too much looping. However, with multithreading it is possible to trigger even in legitimate scenarios (#​10437)

v1.57.0

gRPC Java 1.57.0 Release Notes

This release accidentally broke Java 8: NoSuchMethodError for some ByteBuffer methods. The issue is tracked in https://github.com/grpc/grpc-java/issues/10432 and fixed in 1.57.1.

API Changes
  • Use fully qualified java.lang.String in all cases in generated code. This fixes compilation if a protobuf message is named “String”.
  • Stabilize io.grpc.Status.asRuntimeException(Metadata) and trailersFromThrowable
  • Stabilize io.grpc.ManagedChannelBuilder.useTransportSecurity (#​10244)
  • Stabilize io.grpc.util.MutableHandlerRegistry (#​10348)
Behavior Changes
  • api: CheckedForwardingClientCall now passes trailers from the caught exception
  • context, api: Package io.grpc is now consolidated into a single artifact grpc-api by moving classes from grpc-context to grpc-api. grpc-context now has a dependency on grpc-api (but excludes other dependencies of grpc-api) so any application previously using only grpc-context will now also bring in grpc-api. This fixes #​3522 which was the major issue preventing support of Java modules. We are not done fixing support, as some artifacts need to be split and Automatic-Module-Name needs to be added. The next release is likely to be more stable for modules.
  • core: Change delay for hedging retry after a non-fatal error to be 0 to match the gRFC (A6).
  • core: Wrap other name resolver types in a RetryingNameResolver . Previously, if authority was not overridden, then some name resolvers (such as grpclb) had no retry.
  • xds: Handle loops and duplicates in xds Aggregate clusters
  • xds: require EDS service name in CDS resources with an xdstp name
  • xds: Use Rule order instead of RuleChain
  • xds: Environment variable "GRPC_XDS_EXPERIMENTAL_SECURITY_SUPPORT" is no longer respected, so xDS security cannot be disabled any more (#​10243)
New Features
  • binder: Add UserHandle and BinderChannelCredentials to support cross-user communication (#​10197)
  • xds,orca: LRS named metrics support
Improvements
  • core: Resolve isAndroid only once on class loading. This can improve channel creation performance on Android.
  • xds: Pick a subchannel with new static stride scheduler in WeightedRoundRobinLoadBalancer
Bug Fixes
  • xds: Fix the server sending a GOAWAY when an LDS update with no changes other than ordering is received.
  • netty: Fix NPE when a header with errors is received with endStream=true. This was causing logs to be filled with errors when health checkers didn’t specify a content type.
  • okhttp: Fix the Socket data race when shutdown/closed during connecting that was causing a significant delay
Dependencies
  • Upgraded Netty to 4.1.93-Final
  • Update guava dependency to 32.0.1 to address CVE-2023-2976
Acknowledgements
  • Benjamin Peterson
  • Masakuni Oishi
  • Philip K. Warren
  • Stephane Landelle

v1.56.1

Bug fixes
  • core: Fix regression in 1.54.0 where polling NameResolvers would not refresh after a resolution error (#​10328). The symptom is a transient failure like "UNAVAILABLE: Unable to resolve host" continuing potentially forever. This did not impact DnsNameResolver, but it did impacted GrpclbNameResolver which is the dns name resolver used when grpc-grpclb is in the classpath. So even users that think "I don't use grpclb" may have been impacted. round_robin is mainly impacted on startup, but if the error happened afterward it would commonly fix itself for short transient DNS failures. pick_first is impacted at all times; any failed DNS resolution could cause all future RPCs on the channel to fail.

v1.56.0

API Changes
  • api: Stabilize the SynchronizationContext class (#​10130).
  • api: Stabilize io.grpc.CallCredentials (#​10208, #​10211). thisUsesUnstableApi() is @Deprecated and has a default implementation. CallCredentials implementations should delete their implementation or remove @Overrides, as the method will be deleted in the future.
  • api: Stabilize the ProxyDetector hierarchy and ManagedChannelBuilder.proxyDetector method.
Behavior Changes
  • core: Sticky TRANSIENT_FAILURE in PickFirstLoadBalancer (#​10106). See gRFC A62. If it can't connect, pick-first will now immediately fail RPCs until after it successfully connects. RPCs will no longer be delayed while it performs those attempts, which previously could cause significant (error) latency. It now also performs reconnect attempts after failure and backoff without prompting; previously it required an RPC to trigger the reconnect. ManagedChannel.idleTimeout (defaults to 30 minutes) still applies and forces the channel idle after a period of no RPCs.
  • stub: Add a null check for responseObserver into the methods for initiating a call that takes a responseObserver argument. This ensures a fail fast with a clearer cause instead of an NPE when the observer is first used.
  • xds: Flip default for RLS being enabled to true for XDS (#​10248) (#​10252). If there are no RLS configurations in your XDS or you already enabled it with the environment variable this will have no effect. To disable it, set the flag GRPC_EXPERIMENTAL_XDS_RLS_LB to false.
  • xds: Rename weighted_round_robin_experimental LB Policy to weighted_round_robin (#​10162).
New Features
  • protobuf,protobuf-lite: Allow to configure protobuf recursion limit (#​10094).
  • core: Optional address shuffle in PickFirstLoadBalancer (#​10110).
  • xds: pick_first LB configuration (#​10181).
Improvements
  • xds: Add error-per-second in weight formula for client-side WRR (#​10177).
  • xds: Use application_utilization and fallback to cpu_utilization if unset in weight formula for client-side WRR. (#​10256).
  • bazel: The README now mentions Bazel and where to find the example. (#​10217).
Bug Fixes
  • binder: Handle unexpected exceptions on binder threads. (#​10092.
  • ​​android,binder,cronet: .aar file when publishing. (#​10138).
  • api: Fix boundary check in Status.fromCodeValue(). (#​10155).
  • core: Don't use system Locale for content-type matching. (#​10097).
  • okhttp: Fix signed-byte comparison in server when checking for ASCII in header (#​10151). Without fix, authority could contain utf-8.
Dependencies
  • Version pinning (e.g., [1.56.0] instead of 1.56.0) has been removed from POMs, for both Netty and gRPC dependencies. The pinning was unreliable in Maven and ignored in Gradle, yet caused downloads during the build to fetch the version list. For a while we've had a BOM that helps reduce version skew. (#​10175).
  • bazel: Add java toolchain type to all rules using java_common. (#​10225).
  • Upgraded netty-tcnative-boringssl-static in grpc-netty-shaded to 2.0.61.Final (#​10260). Netty itself was not updated.
  • Upgraded AndroidX Annotation to 1.6.0 (#​10178).
  • Upgraded AndroidX Core to 1.10.0 (#​10178).
  • Upgraded AndroidX Lifecycle-Common to 2.6.1 (#​10178).
  • Upgraded OpenCensus to 0.31.1 (#​10178).
  • Upgraded Cronet API to 108.5359.79 (#​10178).
  • Upgraded proto-google-common-protos to 2.17.0 (#​10178).
  • Upgraded Gson to 2.10.1 (#​10178).
  • Upgraded PerfMark API to 0.26.0 (#​10178).
  • Upgraded RE2/J to 1.7 (#​10178).
Acknowledgements

v1.55.3

Bug fixes
  • core: Fix regression in 1.54.0 where polling NameResolvers would not refresh after a resolution error (#​10328). The symptom is a transient failure like "UNAVAILABLE: Unable to resolve host" continuing potentially forever. This did not impact DnsNameResolver, but it did impacted GrpclbNameResolver which is the dns name resolver used when grpc-grpclb is in the classpath. So even users that think "I don't use grpclb" may have been impacted. round_robin is mainly impacted on startup, but if the error happened afterward it would commonly fix itself for short transient DNS failures. pick_first is impacted at all times; any failed DNS resolution could cause all future RPCs on the channel to fail.

v1.55.1

The 1.55.0 release failed. There were no artifacts published for it.

API Changes
  • services: Rename MetricRecorder.setQps/clearQps to setQpsMetric/clearQpsMetric (#​10031)
Behavior Changes
  • gcp-observability: Remove monitored resource detection for logging (https://github.com/grpc/grpc-java/pull/10020). The cloud libraries will fill in these details instead
  • protoc-gen-grpc-java: binaries for Linux ARM and PPC are now built using Ubuntu 18.04. They will no longer work on Ubuntu 16.04 and Debian 9
New Features
  • api: Stabilize the frequently used compression APIs (#​9942): CallOptions.withCompression, CallOptions.getCompressor, AbstractStub.withCompression, ServerCall.setCompression, ServerCall.setMessageCompression
  • api: Stabilize Detachable and HasByteBuffer
  • gcp-observability: Stabilize GcpObservability (https://github.com/grpc/grpc-java/pull/10024). The GcpObservability API provides a simple way to export logging, tracing, and metrics to Google Cloud Operations. See the Google Cloud blog post.
  • census: Add new tracer annotation to indicate the time when name resolution completed for those RPCs that experienced name resolution delay, or the time when picking subchannel completed for those RPCs that experienced picking subchannel delay. (#​10014, #​10044)
  • protoc-gen-grpc-java: binary for s390x is now published (#​9455). The glibc version used is available in Ubuntu 20.04, Debian 11, and CentOS 9 and later
  • authz: Added FileWatcherAuthorizationServerInterceptor (#​9775)
  • services: Added OrcaMetricReportingServerInterceptor.create(MetricRecorder) which adds common metrics per-RPC (#​9902)
  • android: Add UdsChannelBuilder for using LocalSocket an Android (#​8418)
  • alts: Observe the GRPC_ALTS_MAX_CONCURRENT_HANDSHAKES environment variable user to adjust the max number of concurrent ALTS handshakes (#​10016)
  • binder: Expose client identity via PeerUid and PeerUids (#​9952)
  • binder: Add BindServiceFlags.setAllowActivityStarts() for BIND_ALLOW_ACTIVITY_STARTS added in Android U (#​10008)
Bug Fixes
  • core: Fix NPE race during hedging (https://github.com/grpc/grpc-java/pull/10007), fixing a Netty buffer memory leak for cancelled RPCs
  • core: Allow transparent retries after a retry attempt and the configured max retries was 1 (#​10066)
  • okhttp: properly implement OkHttpServerBuilder.maxConnectionAgeGrace() (#​9968)
  • xds: Enable federation support. See gRFC A47
  • xds: Enable Weighted Round Robin LB policy support. See gRFC A58
  • xds: Avoid ClassCastException if the control plane changes the top-level policy (#​10091). This is expected to be unlikely, but is possible
  • xds: Fix java.util.NoSuchElementException: SecurityProtocolNegotiators$ClientSdsHandler#0 (#​10118). This error did not cause any problems, other than unnecessary logging
  • xds: Avoid using the default locale for case insensitive path matching (#​10148)
  • googleapis: Enable ignore_resource_deletion for google-c2p: resolver’s default xds bootstrap (#​10121)
  • rls: Refresh name resolution on rejected addresses (#​10032)
New Examples
Dependencies
  • protobuf-java and protobuf-java-util upgraded to 3.22.3 (#​10045)
Acknowledgements

v1.54.2

Bug Fixes
  • core: Fix regression in 1.54.0 where polling NameResolvers would not refresh after a resolution error (https://github.com/grpc/grpc-java/pull/10328). The symptom is a transient failure like "UNAVAILABLE: Unable to resolve host" continuing potentially forever. This did not impact DnsNameResolver, but it did impacted GrpclbNameResolver which is the dns name resolver used when grpc-grpclb is in the classpath. So even users that think "I don't use grpclb" may have been impacted. round_robin is mainly impacted on startup, but if the error happened afterward it would commonly fix itself for short transient DNS failures. pick_first is impacted at all times; any failed DNS resolution could cause all future RPCs on the channel to fail.
  • xds: Avoid using the default locale for case insensitive path matching (#​10149)
  • xds: Avoid potential channel panic when control plane changes the field used to configure load balancing (#​10103)
  • core: Allow transparent retries after a retry attempt and the configured max retries w

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/grpc-java-monorepo branch from fc0ccba to 03a52a2 Compare February 3, 2024 00:58
@renovate renovate bot changed the title Update grpc-java monorepo to v1.61.0 Update grpc-java monorepo Feb 3, 2024
@renovate renovate bot force-pushed the renovate/grpc-java-monorepo branch from 03a52a2 to 2169fa4 Compare February 4, 2024 05:20
@renovate renovate bot changed the title Update grpc-java monorepo Update grpc-java monorepo to v1.61.1 Feb 4, 2024
@renovate renovate bot force-pushed the renovate/grpc-java-monorepo branch from 2169fa4 to e9edb28 Compare February 27, 2024 02:40
@renovate renovate bot changed the title Update grpc-java monorepo to v1.61.1 Update grpc-java monorepo Feb 27, 2024
@renovate renovate bot force-pushed the renovate/grpc-java-monorepo branch from e9edb28 to d3649e6 Compare February 28, 2024 17:48
@renovate renovate bot changed the title Update grpc-java monorepo Update grpc-java monorepo to v1.62.2 Feb 28, 2024
@renovate renovate bot force-pushed the renovate/grpc-java-monorepo branch from d3649e6 to 65599a2 Compare April 5, 2024 17:49
@renovate renovate bot changed the title Update grpc-java monorepo to v1.62.2 Update grpc-java monorepo to v1.63.0 Apr 5, 2024
@renovate renovate bot force-pushed the renovate/grpc-java-monorepo branch from 65599a2 to b18fcbe Compare May 22, 2024 20:37
@renovate renovate bot changed the title Update grpc-java monorepo to v1.63.0 Update grpc-java monorepo to v1.64.0 May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants