From f73aeeadf948d8e28933c91f31b3afa57aec6843 Mon Sep 17 00:00:00 2001 From: Clement Escoffier Date: Mon, 1 Jul 2024 11:10:05 +0200 Subject: [PATCH] Update to gRPC 1.65.0 and Netty 4.1.111 This commit updates the gRPC version to 1.65.0 and enables the switch to Netty 4.1.111. Additionally, it updates several gRPC-related dependencies: - jprotoc to 1.2.2 - protoc to 3.25.3 - protobuf-java to 3.25.3 Disable Stork "least response time" IT when using the gRPC Java client. This is because in gRPC 1.65.0, the load balancer is only called once if the calls are queued. The Vert.x-based client is still behaving normally. When using gRPC Java client, it's a change in behavior, but the load balancer will still be called for non-concurrent calls. --- bom/application/pom.xml | 2 +- docs/src/main/asciidoc/grpc-service-consumption.adoc | 2 -- docs/src/main/asciidoc/stork-reference.adoc | 2 +- .../stork/GrpcStorkResponseTimeCollectionTest.java | 9 +++++++++ pom.xml | 6 +++--- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 82635f6f91c337..77082ecd340994 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -134,7 +134,7 @@ 15.0.5.Final 5.0.5.Final 3.1.5 - 4.1.110.Final + 4.1.111.Final 1.16.0 1.0.4 3.6.0.Final diff --git a/docs/src/main/asciidoc/grpc-service-consumption.adoc b/docs/src/main/asciidoc/grpc-service-consumption.adoc index b22b313b1da9c8..5fb6f420708d6e 100644 --- a/docs/src/main/asciidoc/grpc-service-consumption.adoc +++ b/docs/src/main/asciidoc/grpc-service-consumption.adoc @@ -211,8 +211,6 @@ The `client-name` is the name set in the `@GrpcClient` or derived from the injec The following examples uses _hello_ as the client name. Don't forget to replace it with the name you used in the `@GrpcClient` annotation. -IMPORTANT: When you enable `quarkus.grpc.clients."client-name".use-quarkus-grpc-client`, you are then using the new Vert.x gRPC channel implementation, so not all configuration properties can still be applied. And currently there is no Stork support yet. - IMPORTANT: When you enable `quarkus.grpc.clients."client-name".xds.enabled`, it's the xDS that should handle most of the configuration above. === Enabling TLS diff --git a/docs/src/main/asciidoc/stork-reference.adoc b/docs/src/main/asciidoc/stork-reference.adoc index 0e7c9ec907b0d2..138a07a9894182 100644 --- a/docs/src/main/asciidoc/stork-reference.adoc +++ b/docs/src/main/asciidoc/stork-reference.adoc @@ -20,7 +20,7 @@ include::{includes}/extension-status.adoc[] The current integration of Stork supports: * the REST Client -* the gRPC clients +* the gRPC clients (using the Vert.x gRPC client is recommended) Warning: The gRPC client integration does not support statistic-based load balancers. diff --git a/integration-tests/grpc-stork-response-time/src/test/java/io/quarkus/grpc/examples/stork/GrpcStorkResponseTimeCollectionTest.java b/integration-tests/grpc-stork-response-time/src/test/java/io/quarkus/grpc/examples/stork/GrpcStorkResponseTimeCollectionTest.java index 2cd13722866fab..05043f8b735552 100644 --- a/integration-tests/grpc-stork-response-time/src/test/java/io/quarkus/grpc/examples/stork/GrpcStorkResponseTimeCollectionTest.java +++ b/integration-tests/grpc-stork-response-time/src/test/java/io/quarkus/grpc/examples/stork/GrpcStorkResponseTimeCollectionTest.java @@ -1,7 +1,16 @@ package io.quarkus.grpc.examples.stork; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + import io.quarkus.test.junit.QuarkusTest; @QuarkusTest class GrpcStorkResponseTimeCollectionTest extends GrpcStorkResponseTimeCollectionTestBase { + + @Test + @Disabled("Disabled because of https://github.com/grpc/grpc-java/commit/8844cf7b87a04dd2d2e4a74cd0f0e3f4fed14113 which does not call the load balancer for each call anymore.") + public void shouldCallConfigurableIfFaster() { + + } } diff --git a/pom.xml b/pom.xml index ca5caa1edb811f..5ac3343afc0eff 100644 --- a/pom.xml +++ b/pom.xml @@ -80,9 +80,9 @@ 7.1.1.Final - 1.64.0 - 1.2.1 - 3.25.0 + 1.65.0 + 1.2.2 + 3.25.3 ${protoc.version} 2.39.1