API Changes
Behavior Changes
- core: Enable the new Pick First Leaf Loadbalancer (#13114) (cd2e1d9). Pick First Leaf Loadbalancer is the modern rewrite designed for gRPC's Petiole architecture and standardized by gRFC A62 (Pick-first LB policy improvements) and gRFC A61 (Happy Eyeballs / Dualstack support).
- core: Count client-cancelled server calls as failed in Channelz (#13128) (14a27ad)
- core: Reject retryThrottling without
maxTokensortokenRatioclearly (#13131) (15d64a4) - xds: Fail CDS cluster when EDS update has no usable endpoints (#13142) (459a966)
- xds: Reject duplicate endpoint addresses in EDS (#13127) (005557f)
Bug Fixes
- binder: Fix sign extension in
BlockInputStream(8eecd72) - binder: Fix
BlockInputStream.read()on zero-length blocks (be357f8) - binder: Validate args in
BlockInputStream.read(743e9f4) - binder: Avoid force-terminating
BinderTransporton staleunregisterCalltask (ed3bf6b) - binder: Deliver
closed()to streams started after shutdown (8307265) - binder: Don't report
onReady()for a closed Inbound (210463b) - core: Prevent RetriableStream registry leak on cancel race (#13083) (b731158)
- core: Handle ProxySelector
IllegalArgumentException(#13053) (6f5fcce) - core: Keep
getByteBuffer()support when coalescing small buffers (#13108) (6b5417f) - netty: Include pseudo-headers in
GrpcHttp2RequestHeaders.iterator()(#13118) (d94a00c) - netty: Reset stream when trailers arrive with END_STREAM unsent (#13079) (ba0aab4)
- netty: Drain before closing a gracefully shut down server connection (#13086) (18f412e)
- netty: Ignore inbound frames without a transport state (#13073) (fe4f145)
- okhttp: Reset stream when trailers arrive with END_STREAM unsent (#13084) (1084e97)
- xds: Fix
DistributorWatcherthread safety inCertificateProvider(#13087) (341f82c) - xds: Fix ext_proc client hang on unary and server-streaming RPCs when upstream is not ready (#13147) (750b0da)
- xds: Keep saved certs and roots after
SslContextupdate (#13085) (08bcf60) - xds: Make
ControlPlaneClient.shutdown()synchronous on syncContext (#13136) (cb2a699) - xds: Support retries in
RawMessageClientInterceptorand conditionally add it to the filter chain (#13042) (29d07cc). Previously,RawMessageClientInterceptor.sendMessage()forwarded a single-use InputStream directly to the raw call'ssendMessage()which was read till EOF on the 1st attempt, and the 2nd attempt read zero bytes from the InputStream. This change maintains a copy of the ByteString to create anInputStreamfrom the beginning for each new retry attempt. Also install RawMessageClientInterceptor in the filter chain only if a filter requires payload access.
Improvements
- core: Delayed deserialization for unary/server-streaming calls (#13113) (0f683e3) For calls where the client sends at most one message (Unary and Server Streaming), this change delays the deserialization of incoming messages for such calls until the client actually half-closes the stream. If the call is cancelled before half-close, the buffered raw message is discarded without being deserialized.
- gradle: Minor collection of Gradle 9 fixes (cf7c13c)
- netty: Enable AdaptiveCumulator (#13100) (d4f5bab)
- netty: Increase HPACK encoder bucket count to 64 (#13077) (247d324)
- okhttp: Set socket read timeout during TLS handshake (#13081) (a74c398)
- xds: Use ObjectPool to manage scheduler in XdsServerWrapper (38db48e)
- xds: Check that resources are received from the right servers (#13146) (adcae4a). Avoids processing resource updates not belonging to the Control Plane to which the ADS stream has been established. Credit to SounLabs for reporting this issue.
New Features
- core: Implement gRFC A121 (LB Delay Observability) (#12893) (ac4d252)
- interop: Enable OpenTelemetry tracing support in Java (#12910) (cf50cf8)
- xds: Add LEDS list collection support (gRFC A95) (#13055) (d2beeea)
Dependencies
- bazel: Upgrade rules_java to 9.1.0 in WORKSPACE to support JDK 25 (3b660ac)
- build: Upgrade Gradle wrapper, dependencies, Bazel configs, and GitHub workflows (#13145) (4483d92)
Documentation
Thanks to
- @petedmarsh
- @ArturoSalazarB16
- @JoeCqupt
- @lujiajing1126
- @valeter
- @bcleenders
- @brunoramos478
- @kkmurthyt21
- @Meemaw
- @merlimat
- @NianJiuZst
- @Nicolas-EM
- @gurusai-voleti
- @petedmarsh
- @014-code