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 to v1.51.0 #5

Merged
merged 1 commit into from Nov 25, 2022
Merged

Update grpc to v1.51.0 #5

merged 1 commit into from Nov 25, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 25, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.grpc:grpc-protobuf 1.47.0 -> 1.51.0 age adoption passing confidence
io.grpc:grpc-stub 1.47.0 -> 1.51.0 age adoption passing confidence

Release Notes

grpc/grpc-java

v1.51.0

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

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

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

v1.50.0

New Features
  • okhttp: Added connection management features to okhttp server, including maxConnectionIdle(), permitKeepAliveTime(), and permitKeepAliveWithoutCalls() (#​9494, #​9544)
  • binder: Add SecurityPolicies for checking device owner/profile owner (#​9428)
API Changes
  • api: Add LoadBalancer.acceptResolvedAddresses() (#​9498). The method is like handleResolvedAddresses() but returns a boolean of whether the addresses and configuration were accepted. Not accepting the update triggers the NameResolver to retry after a delay. We are not yet encouraging migration to this method, as there is still a second future API change
  • core: add CallOptions to CallCredentials.RequestInfo (#​9538)
Bug Fixes
  • auth: Fix AppEngine failing while retrieving access token when instantiating a blocking stub using AppEngineCredentials (#​9504)
  • core: Ensure that context cancellationCause is set (#​9501)
  • core: Update outlier detection max ejection logic to allow exceeding the limit by one, to match Envoy. (#​9489, #​9492)
  • core: outlier detection to honor min host request volume (#​9490)
  • okhttp: Add timeout for HTTP CONNECT proxy handshake (#​9586)
  • xds: ringhash policy in TRANSIENT_FAILURE should not attempt connecting when already in connecting (#​9535). With workloads where most requests have the same hash, ring hash should behave more like pick-first of slowly trying backends
Dependencies
  • netty: upgrade netty from 4.1.77.Final to 4.1.79.Final and tcnative from 2.0.53 to 2.0.54 (#​9451)
Acknowledgements

@​cpovirk
@​prateek-0
@​sai-sunder-s

v1.49.2

Dependencies

  • Bump protobuf to 3.21.7

v1.49.1

Bug Fixes
  • xds: Fix a bug in ring-hash load balancing policy that, during TRANSIENT_FAILURE state, it might cause unnecessary internal connection requests on subchannels. (#​9537)
  • auth: Fix AppEngine failing while retrieving access token when instantiating a blocking stub using AppEngineCredentials (#​9524)
Behavior Changes

v1.49.0

New Features
  • okhttp: Add OkHttpServerBuilder. The server can be used directly, but is not yet available via ServerBuilder.forPort() and Grpc.newServerBuilderForPort(). It passes our tests, but has seen no real-world use. It is also lacking connection management features
  • okhttp: Add support for byte-based private keys via TlsChannelCredentials and TlsServerCredentials
  • core: New outlier detection load balancer
  • googleapis: google-c2p resolver is now stabilized
Bug Fixes
  • core: Fix retry causing memory leak for canceled RPCs. (#​9360)
  • core: Use SyncContext for InProcess transport callbacks to avoid deadlocks. This fixes the long-standing issue #​3084 which prevented using directExecutor() in some tests using streaming RPCs
  • core: Disable retries with in-process transport by default (#​9361). In-process does not compute message sizes so can retain excessive amounts of memory
  • bazel: Use valid target name for services and xds when overriding Maven targets (#​9422). This fixes an error of the form no such target '@​io_grpc_grpc_java//services:services' for services and missing ORCA classes for xds. The wrong target names were introduced in 1.47.0
  • xds: channel_id hash policy now uses a random per-channel id instead of an incrementing one. The incrementing id was the same for every process of a binary, which was not the intention (#​9453)
  • core: Fix a bug that the server stream should not deliver halfClose() when the call is immediately canceled. The bug causes a bad message INTERNAL, desc: Half-closed without a request at server call. (#​9362)
  • xds: Remove shaded orca proto dependency in ORCA api. The shading was broken and couldn't really be used. (#​9366)
Behavior Changes
  • gcp-observability: Interceptors are now injected in more situations, including for non-Netty transports and when using transport-specific APIs like NettyChannelBuilder. (#​9309 #​9312 #​9424)
  • gcp-observability: custom tags now extended to metrics and traces (#​9402 #​9407)
  • gcp-observability: excludes RPCs into Google Cloud Ops backend for instrumentation (#​9436)
  • xds: xdsNameResolver now matches channel overrideAuthority in virtualHost matching (#​9405)
Acknowledgement

@​benjaminp
@​j-min5u

v1.48.2

Bug Fixes

  • xds: Fix a bug in ring-hash load balancing policy that, during TRANSIENT_FAILURE state, it might cause unnecessary internal connection requests on subchannels. (https://github.com/grpc/grpc-java/pull/9537)
  • auth: Fix AppEngine failing while retrieving access token when instantiating a blocking stub using AppEngineCredentials (https://github.com/grpc/grpc-java/pull/9524)
  • xds: channel_id hash policy now uses a random per-channel id instead of an incrementing one. The incrementing id was the same for every process of a binary, which was not the intention (https://github.com/grpc/grpc-java/pull/9453)
  • bazel: Use valid target name for services and xds when overriding Maven targets (https://github.com/grpc/grpc-java/pull/9422). This fixes an error of the form no such target '@​io_grpc_grpc_java//services:services' for services and missing ORCA classes for xds. The wrong target names were introduced in 1.47.0

Dependencies

  • Bump protobuf to 3.21.7

v1.48.1

New Features

ORCA provides APIs to inject custom metrics at a gRPC server, and consume them at a gRPC client. It implements A51: Custom Backend Metrics Support. We changed the ORCA APIs; they had broken shading and couldn't really be used, so we fixed them in the patch release.

Bug Fixes

  • core: Fix a bug that the server stream should not deliver halfClose() when the call is immediately canceled. The bug causes a bad message INTERNAL, desc: Half-closed without a request at server call. (#​9362)
  • core: Fix retry causing memory leak for cancelled RPCs. (#​9415)
  • core: Disable retry by default for in-process transport's channel.(#​9368)

v1.48.0

Bug Fixes
  • Removed the Class-Path manifest entry from jars generated with the gradle shadow plugin (#​9270). This should prevent “[WARNING] [path] bad path element” compilation warnings
  • Fix Channelz HTTP/2 window reporting. Previously the sender and receiver windows were reversed
  • Service config parse failures should be UNAVAILABLE, not INVALID_ARGUMENT (#​9346). This bug could cause RPCs to fail with INVALID_ARGUMENT if the service config was invalid when the channel started. RPCs were not failed if the channel had previously received no config or a valid config. Channels using xds were not exposed to this issue
New Features
Improvements
  • Changed the debug strings for many Attributes.Keys to reference the API of the key. This should make it easier to find the API the key is exposed when using attributes.toString()
  • api: Document Attributes.Key uses reference equality. This is to make it clear the behavior is on purpose, and mirrors other Key types in the API
  • api: Explain security constraints of EquivalentAddressGroup.ATTR_AUTHORITY_OVERRIDE, to avoid misuse by NameResolvers (#​9281)
  • testing: GrpcCleanupRule now extends ExternalResource. This makes it usable with JUnit 5
  • core: Clear ConfigSelector when the channel enters panic mode (#​9272). This prevents hanging RPCs if panic mode is entered very early in the channel lifetime and makes panic mode more predictable when xds is in use. Panic mode is a Channel feature used when a bug causes an unrecoverable error
  • core: Avoid unnecessary flushes for unary responses. It optimizes the response flow (#​9273)
  • core: Use the offload executor in CallCredentials rather than the executor from CallOptions (#​9313)
  • compiler: support protoc compiling on loongarch_64 and ppc64le platform (#​9178 #​9284)
  • binder: Add security Policy for verifying signature using sha-256 hash (#​9305)
  • xds: clusterresolver reuses child policy names for the same locality to avoid subchannel connection churns (#​9287)
  • xds: Fail RPCs with error details when resources are deleted instead of “NameResolver returned no usable address errors” (#​9337)
  • xds: Support least_request LB in LoadBalancingPolicy (#​9262)
  • xds: weighted target to delay picker updates while updating children (#​9306)
  • xds: delete the permanent error logic in processing LDS updates in XdsServerWrapper (#​9268)
  • xds: when delegate server throws on start communicate the error to statusListener (#​9277)
Dependencies
  • Bump Guava to 31.1
  • Bump protobuf to 3.21.1 (#​9311)
  • Bump Error Prone annotations to 2.14.0
  • Bump Animal Sniffer annotations to 1.21
  • Bump Netty to 4.1.77.Final and netty_tcnative to 2.0.53.Final
  • protobuf: Bump com.google.api.grpc:proto-google-common-protos to 2.9.0
  • alts: Bump Conscrypt to 2.5.2
  • xds: Bump RE2J to 1.6
  • xds: Remove unused org.bouncycastle:bcpkix-jdk15on dependency
  • xds: Update xDS protos (#​9223)
Acknowledgements

@​mirlord
@​zhangwenlong8911
@​adilansari
@​amirhadadi
@​jader-eero
@​jvolkman
@​sumitd2

v1.47.1

Bug Fixes

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

Behavior Changes

  • xds: Remove permanent error handling in LDS update in XdsServerWrapper. Also notify OnNotServing on StatusListener when the delegated server initial start fails. (#​9276, #​9279)

Dependencies

  • Bump protobuf to 3.19.6

Configuration

📅 Schedule: Branch creation - "after 9am" (UTC), 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.

@portlek portlek enabled auto-merge (squash) November 25, 2022 17:05
@portlek portlek merged commit 91b8be4 into master Nov 25, 2022
@portlek portlek deleted the renovate/grpc branch November 25, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant