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 grpc/grpc-java#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
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps io.grpc:grpc-netty-shaded from 1.56.0 to 1.57.2.
Release notes
Sourced from io.grpc:grpc-netty-shaded's releases.
... (truncated)
Commits
0cfa2d1
Bump version to 1.57.21ef1a2b
Update README etc to reference 1.57.2299a61e
util: Outlier detection tracer delegation (#10459) (#10483)df9148c
Bump version to 1.57.2-SNAPSHOT7292ed8
Bump version to 1.57.1adfa669
Update README etc to reference 1.57.13e69c26
Avoid accidental Java 9+ dependency with --release38e0a0f
(backport v1.57) removed assert statement for static stride scheduler with mu...503883b
Bump version to 1.57.1-SNAPSHOTcde208a
Bump version to 1.57.0You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show