Update dependency io.grpc:grpc-api to v1.57.0 (master) #1991
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.54.1
->1.57.0
By merging this PR, the issue #1990 will be automatically resolved and closed:
Release Notes
grpc/grpc-java (io.grpc:grpc-api)
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
Behavior Changes
New Features
UserHandle
andBinderChannelCredentials
to support cross-user communication (#10197)Improvements
Bug Fixes
Dependencies
Acknowledgements
v1.56.1
Bug fixes
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
SynchronizationContext
class (#10130).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.ProxyDetector
hierarchy andManagedChannelBuilder.proxyDetector
method.Behavior Changes
TRANSIENT_FAILURE
inPickFirstLoadBalancer
(#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.responseObserver
into the methods for initiating a call that takes aresponseObserver
argument. This ensures a fail fast with a clearer cause instead of an NPE when the observer is first used.GRPC_EXPERIMENTAL_XDS_RLS_LB
to false.weighted_round_robin_experimental
LB Policy toweighted_round_robin
(#10162).New Features
PickFirstLoadBalancer
(#10110).pick_first
LB configuration (#10181).Improvements
error-per-second
in weight formula for client-side WRR (#10177).application_utilization
and fallback tocpu_utilization
if unset in weight formula for client-side WRR. (#10256).Bug Fixes
.aar
file when publishing. (#10138).Status.fromCodeValue()
. (#10155).Dependencies
[1.56.0]
instead of1.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).java_common
. (#10225).netty-tcnative-boringssl-static
ingrpc-netty-shaded
to 2.0.61.Final (#10260). Netty itself was not updated.proto-google-common-protos
to 2.17.0 (#10178).Acknowledgements
v1.55.3
Bug fixes
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
MetricRecorder.setQps
/clearQps
tosetQpsMetric
/clearQpsMetric
(#10031)Behavior Changes
New Features
CallOptions.withCompression
,CallOptions.getCompressor
,AbstractStub.withCompression
,ServerCall.setCompression
,ServerCall.setMessageCompression
Detachable
andHasByteBuffer
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.FileWatcherAuthorizationServerInterceptor
(#9775)OrcaMetricReportingServerInterceptor.create(MetricRecorder)
which adds common metrics per-RPC (#9902)UdsChannelBuilder
for using LocalSocket an Android (#8418)GRPC_ALTS_MAX_CONCURRENT_HANDSHAKES
environment variable user to adjust the max number of concurrent ALTS handshakes (#10016)PeerUid
andPeerUids
(#9952)BindServiceFlags.setAllowActivityStarts()
forBIND_ALLOW_ACTIVITY_STARTS
added in Android U (#10008)Bug Fixes
OkHttpServerBuilder.maxConnectionAgeGrace()
(#9968)java.util.NoSuchElementException: SecurityProtocolNegotiators$ClientSdsHandler#0
(#10118). This error did not cause any problems, other than unnecessary logginggoogle-c2p:
resolver’s default xds bootstrap (#10121)New Examples
Dependencies
Acknowledgements
v1.54.2
Bug Fixes